This repository has been archived by the owner on Aug 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprobConst.h
62 lines (51 loc) · 1.66 KB
/
probConst.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/**
* \file probConst.h (interface file)
*
* \brief Problem name: SoccerGame
*
* Problem simulation parameters.
*
* \author Nuno Lau - January 2021
*/
#ifndef PROBCONST_H_
#define PROBCONST_H_
/* Generic parameters */
/** \brief total number of players */
#define NUMPLAYERS 10
/** \brief total number of goalies */
#define NUMGOALIES 3
/** \brief total number of referees */
#define NUMREFEREES 1
/** \brief number of players in each team */
#define NUMTEAMPLAYERS 4
/** \brief number of goalies in teach team */
#define NUMTEAMGOALIES 1
/* Player/Goalie state constants */
/** \brief player/goalie initial state, arriving */
#define ARRIVING 0
/** \brief player/goalie waiting to constitute team */
#define WAITING_TEAM 1
/** \brief player/goalie waiting to constitute team */
#define FORMING_TEAM 2
/** \brief player/goalie waiting for referee to start game in team 1 */
#define WAITING_START_1 3
/** \brief player/goalie waiting for referee to start game in team 2 */
#define WAITING_START_2 4
/** \brief player/goalie playing in team 1 */
#define PLAYING_1 5
/** \brief player/goalie playing in team 2 */
#define PLAYING_2 6
/** \brief player/goalie playing */
#define LATE 7
/* Referee state constants */
/** \brief referee initial state, arriving */
#define ARRIVING 0
/** \brief referee waiting for both teams */
#define WAITING_TEAMS 1
/** \brief referee starting game */
#define STARTING_GAME 2
/** \brief referee refereeing */
#define REFEREEING 3
/** \brief referee ending game */
#define ENDING_GAME 4
#endif /* PROBCONST_H_ */