Phoenix2D-Library  0.10
Server.h
Go to the documentation of this file.
1 /*
2  * Phoenix2D (RoboCup Soccer Simulation 2D League)
3  * Copyright (c) 2013 Ivan Gonzalez
4  *
5  * This file is part of Phoenix2D.
6  *
7  * Phoenix2D is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * Phoenix2D is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with Phoenix2D. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef SERVER_H_
22 #define SERVER_H_
23 
24 #include <string>
25 
29 namespace Phoenix
30 {
38 class Server {
39  std::string server_params;
40  std::string getParameter(std::string parameter);
41 public:
42  static double AUDIO_CUT_DIST;
43  static int AUTO_MODE;
44  static double BACK_DASH_RATE;
45  static int BACK_PASSES;
46  static double BALL_ACCEL_MAX;
47  static double BALL_DECAY;
48  static double BALL_RAND;
49  static double BALL_SIZE;
50  static double BALL_SPEED_MAX;
51  static double BALL_STUCK_AREA;
52  static double BALL_WEIGHT;
53  static int CATCH_BAN_CYCLE;
54  static double CATCH_PROBABILITY;
55  static double CATCHABLE_AREA_L;
56  static double CATCHABLE_AREA_W;
57  static double CKICK_MARGIN;
58  static int CLANG_ADVICE_WIN;
59  static int CLANG_DEFINE_WIN;
60  static int CLANG_DEL_WIN;
61  static int CLANG_INFO_WIN;
62  static int CLANG_MESS_DELAY;
64  static int CLANG_META_WIN;
65  static int CLANG_RULE_WIN;
66  static int CLANG_WIN_SIZE;
67  static int COACH;
68  static int COACH_PORT;
69  static int COACH_W_REFEREE;
70  static int CONNECT_WAIT;
71  static double CONTROL_RADIUS;
72  static double DASH_ANGLE_STEP;
73  static double DASH_POWER_RATE;
74  static int DROP_BALL_TIME;
75  static double EFFORT_DEC;
76  static double EFFORT_DEC_THR;
77  static double EFFORT_INC;
78  static double EFFORT_INC_THR;
79  static double EFFORT_INIT;
80  static double EFFORT_MIN;
81  static int EXTRA_HALF_TIME;
82  static int EXTRA_STAMINA;
84  static int FOUL_CYCLES;
85  static double FOUL_DETECT_PROBABILITY;
86  static int FOUL_EXPONENT;
87  static int FREE_KICK_FAULTS;
90  static int FULLSTATE_L;
91  static int FULLSTATE_R;
93  static int GAME_LOG_DATED;
94  static std::string GAME_LOG_DIR;
95  static int GAME_LOG_FIXED;
96  static std::string GAME_LOG_FIXED_NAME;
97  static int GAME_LOG_VERSION;
98  static int GAME_LOGGING;
99  static int GAME_OVER_WAIT;
100  static double GOAL_WIDTH;
101  static int GOALIE_MAX_MOVES;
102  static int GOLDEN_GOAL;
103  static int HALF_TIME;
104  static int HEAR_DECAY;
105  static int HEAR_INC;
106  static int HEAR_MAX;
107  static int INERTIA_MOMENT;
108  static int KEEPAWAY;
109  static int KEEPAWAY_LENGTH;
110  static int KEEPAWAY_LOG_DATED;
111  static std::string KEEPAWAY_LOG_DIR;
112  static int KEEPAWAY_LOG_FIXED;
113  static std::string KEEPAWAY_LOG_FIXED_NAME;
114  static int KEEPAWAY_LOGGING;
115  static int KEEPAWAY_START;
116  static int KEEPAWAY_WIDTH;
117  static int KICK_OFF_WAIT;
118  static double KICK_POWER_RATE;
119  static double KICK_RAND;
120  static double KICK_RAND_FACTOR_L;
121  static double KICK_RAND_FACTOR_R;
122  static double KICKABLE_MARGIN;
123  static std::string LANDMARK_FILE;
124  static std::string LOG_DATE_FORMAT;
125  static int LOG_TIMES;
126  static double MAX_BACK_TACKLE_POWER;
127  static double MAX_DASH_ANGLE;
128  static double MAX_DASH_POWER;
129  static int MAX_GOAL_KICKS;
130  static double MAX_TACKLE_POWER;
131  static double MAXMOMENT;
132  static double MAXNECKANG;
133  static double MAXNECKMOMENT;
134  static double MAXPOWER;
135  static double MIN_DASH_ANGLE;
136  static double MIN_DASH_POWER;
137  static double MINMOMENT;
138  static double MINNECKANG;
139  static double MINNECKMOMENT;
140  static double MINPOWER;
141  static int NR_EXTRA_HALFS;
142  static int NR_NORMAL_HALFS;
144  static double OFFSIDE_KICK_MARGIN;
145  static int OLCOACH_PORT;
146  static int OLD_COACH_HEAR;
150  static double PEN_DIST_X;
152  static double PEN_MAX_GOALIE_DIST_X;
153  static int PEN_NR_KICKS;
154  static double PEN_RANDOM_WINNER;
155  static int PEN_READY_WAIT;
156  static int PEN_SETUP_WAIT;
157  static int PEN_TAKEN_WAIT;
158  static int PENALTY_SHOOT_OUTS;
159  static double PLAYER_ACCEL_MAX;
160  static double PLAYER_DECAY;
161  static double PLAYER_RAND;
162  static double PLAYER_SIZE;
163  static double PLAYER_SPEED_MAX;
164  static double PLAYER_SPEED_MAX_MIN;
165  static double PLAYER_WEIGHT;
166  static int POINT_TO_BAN;
167  static int POINT_TO_DURATION;
168  static int PORT;
169  static double PRAND_FACTOR_L;
170  static double PRAND_FACTOR_R;
171  static int PROFILE;
172  static int PROPER_GOAL_KICKS;
173  static double QUANTIZE_STEP;
174  static double QUANTIZE_STEP_L;
175  static int RECORD_MESSAGES;
176  static double RECOVER_DEC;
177  static double RECOVER_DEC_THR;
178  static double RECOVER_INIT;
179  static double RECOVER_MIN;
180  static int RECV_STEP;
181  static double RED_CARD_PROBABILITY;
182  static int SAY_COACH_CNT_MAX;
183  static int SAY_COACH_MSG_SIZE;
184  static int SAY_MSG_SIZE;
185  static int SEND_COMMS;
186  static int SEND_STEP;
187  static int SEND_VI_STEP;
188  static int SENSE_BODY_STEP;
189  static double SIDE_DASH_RATE;
190  static int SIMULATOR_STEP;
191  static double SLOW_DOWN_FACTOR;
194  static int STAMINA_CAPACITY;
195  static int STAMINA_INC_MAX;
196  static int STAMINA_MAX;
197  static int START_GOAL_L;
198  static int START_GOAL_R;
199  static double STOPPED_BALL_VEL;
200  static int SYNCH_MICRO_SLEEP;
201  static int SYNCH_MODE;
202  static int SYNCH_OFFSET;
203  static int SYNCH_SEE_OFFSET;
204  static double TACKLE_BACK_DIST;
205  static int TACKLE_CYCLES;
206  static double TACKLE_DIST;
207  static int TACKLE_EXPONENT;
208  static double TACKLE_POWER_RATE;
209  static double TACKLE_RAND_FACTOR;
210  static double TACKLE_WIDTH;
211  static double TEAM_ACTUATOR_NOISE;
212  static std::string TEAM_L_START;
213  static std::string TEAM_R_START;
215  static int TEXT_LOG_DATED;
216  static std::string TEXT_LOG_DIR;
217  static int TEXT_LOG_FIXED;
218  static std::string TEXT_LOG_FIXED_NAME;
219  static int TEXT_LOGGING;
220  static int USE_OFFSIDE;
221  static int VERBOSE;
222  static double VISIBLE_ANGLE;
223  static double VISIBLE_DISTANCE;
224  static double WIND_ANG;
225  static double WIND_DIR;
226  static double WIND_FORCE;
227  static double WIND_NONE;
228  static double WIND_RAND;
229  static double WIND_RANDOM;
230  Server(std::string server_params);
231  ~Server();
232 };
234 } // End namespace Phoenix
237 #endif /* SERVER_H_ */
static double PLAYER_SIZE
Definition: Server.h:162
static int DROP_BALL_TIME
Definition: Server.h:74
static int PEN_READY_WAIT
Definition: Server.h:155
static int TACKLE_EXPONENT
Definition: Server.h:207
static int TACKLE_CYCLES
Definition: Server.h:205
static int PEN_NR_KICKS
Definition: Server.h:153
static int KICK_OFF_WAIT
Definition: Server.h:117
static double PEN_MAX_GOALIE_DIST_X
Definition: Server.h:152
static int PENALTY_SHOOT_OUTS
Definition: Server.h:158
static int HALF_TIME
Definition: Server.h:103
static double BALL_DECAY
Definition: Server.h:47
static int GOALIE_MAX_MOVES
Definition: Server.h:101
static double BALL_SIZE
Definition: Server.h:49
static int FREEFORM_SEND_PERIOD
Definition: Server.h:88
static double WIND_RAND
Definition: Server.h:228
static std::string TEXT_LOG_FIXED_NAME
Definition: Server.h:218
static int START_GOAL_L
Definition: Server.h:197
static int STAMINA_CAPACITY
Definition: Server.h:194
static int KEEPAWAY_LENGTH
Definition: Server.h:109
static double CKICK_MARGIN
Definition: Server.h:57
static int SYNCH_MICRO_SLEEP
Definition: Server.h:200
static int NR_NORMAL_HALFS
Definition: Server.h:142
static double BALL_SPEED_MAX
Definition: Server.h:50
static int SYNCH_MODE
Definition: Server.h:201
static double EFFORT_DEC
Definition: Server.h:75
static int COACH_W_REFEREE
Definition: Server.h:69
static double PRAND_FACTOR_L
Definition: Server.h:169
static int HEAR_MAX
Definition: Server.h:106
static int COACH_PORT
Definition: Server.h:68
static int KEEPAWAY_WIDTH
Definition: Server.h:116
static double QUANTIZE_STEP_L
Definition: Server.h:174
static int CLANG_META_WIN
Definition: Server.h:64
static int PROPER_GOAL_KICKS
Definition: Server.h:172
static double SLOWNESS_ON_TOP_FOR_RIGHT_TEAM
Definition: Server.h:193
static double MINNECKMOMENT
Definition: Server.h:139
static int CLANG_DEL_WIN
Definition: Server.h:60
static double TEAM_ACTUATOR_NOISE
Definition: Server.h:211
static int SEND_VI_STEP
Definition: Server.h:187
static int SAY_COACH_CNT_MAX
Definition: Server.h:182
static int GAME_LOG_DATED
Definition: Server.h:93
static int CATCH_BAN_CYCLE
Definition: Server.h:53
static double DASH_ANGLE_STEP
Definition: Server.h:72
static double PEN_RANDOM_WINNER
Definition: Server.h:154
static int RECORD_MESSAGES
Definition: Server.h:175
static int GAME_LOG_VERSION
Definition: Server.h:97
static int FULLSTATE_R
Definition: Server.h:91
static int POINT_TO_BAN
Definition: Server.h:166
static int OLD_COACH_HEAR
Definition: Server.h:146
static int CLANG_MESS_DELAY
Definition: Server.h:62
static double MINMOMENT
Definition: Server.h:137
static std::string TEXT_LOG_DIR
Definition: Server.h:216
static double MIN_DASH_ANGLE
Definition: Server.h:135
static double PEN_DIST_X
Definition: Server.h:150
static std::string GAME_LOG_DIR
Definition: Server.h:94
static int HEAR_DECAY
Definition: Server.h:104
static double PLAYER_ACCEL_MAX
Definition: Server.h:159
static std::string TEAM_L_START
Definition: Server.h:212
static double WIND_DIR
Definition: Server.h:225
Server(std::string server_params)
Definition: Server.cpp:215
static int PEN_TAKEN_WAIT
Definition: Server.h:157
static int VERBOSE
Definition: Server.h:221
static int PEN_ALLOW_MULT_KICKS
Definition: Server.h:147
static double KICK_RAND_FACTOR_L
Definition: Server.h:120
static double TACKLE_RAND_FACTOR
Definition: Server.h:209
static double EFFORT_INC_THR
Definition: Server.h:78
static int CLANG_WIN_SIZE
Definition: Server.h:66
static double PLAYER_DECAY
Definition: Server.h:160
static int KEEPAWAY_LOGGING
Definition: Server.h:114
static int GAME_LOG_FIXED
Definition: Server.h:95
static int EXTRA_HALF_TIME
Definition: Server.h:81
static int NR_EXTRA_HALFS
Definition: Server.h:141
static double PLAYER_SPEED_MAX_MIN
Definition: Server.h:164
static int MAX_GOAL_KICKS
Definition: Server.h:129
static double WIND_FORCE
Definition: Server.h:226
static double MAXNECKMOMENT
Definition: Server.h:133
static double TACKLE_DIST
Definition: Server.h:206
static int CLANG_RULE_WIN
Definition: Server.h:65
static int SEND_COMMS
Definition: Server.h:185
std::string server_params
Definition: Server.h:39
static int KEEPAWAY_LOG_DATED
Definition: Server.h:110
static int POINT_TO_DURATION
Definition: Server.h:167
static double PLAYER_SPEED_MAX
Definition: Server.h:163
static double VISIBLE_ANGLE
Definition: Server.h:222
static int PROFILE
Definition: Server.h:171
static int GAME_LOG_COMPRESSION
Definition: Server.h:92
static int TEXT_LOG_DATED
Definition: Server.h:215
static int AUTO_MODE
Definition: Server.h:43
static double EFFORT_INC
Definition: Server.h:77
static double KICK_POWER_RATE
Definition: Server.h:118
static std::string KEEPAWAY_LOG_DIR
Definition: Server.h:111
static int TEXT_LOGGING
Definition: Server.h:219
static double BALL_STUCK_AREA
Definition: Server.h:51
static double OFFSIDE_KICK_MARGIN
Definition: Server.h:144
static double SIDE_DASH_RATE
Definition: Server.h:189
static double EFFORT_MIN
Definition: Server.h:80
static double BALL_WEIGHT
Definition: Server.h:52
static int STAMINA_MAX
Definition: Server.h:196
static double TACKLE_BACK_DIST
Definition: Server.h:204
static int PEN_BEFORE_SETUP_WAIT
Definition: Server.h:148
static int KEEPAWAY_LOG_FIXED
Definition: Server.h:112
static int FULLSTATE_L
Definition: Server.h:90
static double PLAYER_RAND
Definition: Server.h:161
static double BALL_ACCEL_MAX
Definition: Server.h:46
static double AUDIO_CUT_DIST
Definition: Server.h:42
static double CATCHABLE_AREA_L
Definition: Server.h:55
static double RED_CARD_PROBABILITY
Definition: Server.h:181
static int RECV_STEP
Definition: Server.h:180
static int KEEPAWAY_START
Definition: Server.h:115
static double MAX_TACKLE_POWER
Definition: Server.h:130
static int TEXT_LOG_COMPRESSION
Definition: Server.h:214
static int USE_OFFSIDE
Definition: Server.h:220
static double SLOWNESS_ON_TOP_FOR_LEFT_TEAM
Definition: Server.h:192
static double DASH_POWER_RATE
Definition: Server.h:73
static double MINNECKANG
Definition: Server.h:138
static double OFFSIDE_ACTIVE_AREA_SIZE
Definition: Server.h:143
static double MAX_BACK_TACKLE_POWER
Definition: Server.h:126
static int FORBID_KICK_OFF_OFFSIDE
Definition: Server.h:83
static std::string KEEPAWAY_LOG_FIXED_NAME
Definition: Server.h:113
static int CLANG_DEFINE_WIN
Definition: Server.h:59
static int PEN_MAX_EXTRA_KICKS
Definition: Server.h:151
static int SYNCH_SEE_OFFSET
Definition: Server.h:203
static double RECOVER_DEC_THR
Definition: Server.h:177
static int SEND_STEP
Definition: Server.h:186
static int LOG_TIMES
Definition: Server.h:125
static double MAX_DASH_ANGLE
Definition: Server.h:127
static double RECOVER_INIT
Definition: Server.h:178
static int EXTRA_STAMINA
Definition: Server.h:82
static std::string TEAM_R_START
Definition: Server.h:213
static int SAY_MSG_SIZE
Definition: Server.h:184
static double KICKABLE_MARGIN
Definition: Server.h:122
static int HEAR_INC
Definition: Server.h:105
static double EFFORT_INIT
Definition: Server.h:79
static double BACK_DASH_RATE
Definition: Server.h:44
static int GOLDEN_GOAL
Definition: Server.h:102
static int SIMULATOR_STEP
Definition: Server.h:190
static double EFFORT_DEC_THR
Definition: Server.h:76
static double MIN_DASH_POWER
Definition: Server.h:136
static double TACKLE_POWER_RATE
Definition: Server.h:208
static double RECOVER_MIN
Definition: Server.h:179
static double CATCHABLE_AREA_W
Definition: Server.h:56
static int TEXT_LOG_FIXED
Definition: Server.h:217
static int STAMINA_INC_MAX
Definition: Server.h:195
static double WIND_ANG
Definition: Server.h:224
static int CLANG_MESS_PER_CYCLE
Definition: Server.h:63
static int SYNCH_OFFSET
Definition: Server.h:202
static int CLANG_ADVICE_WIN
Definition: Server.h:58
static double MAX_DASH_POWER
Definition: Server.h:128
Server The Server lorem Ipsum
Definition: Server.h:38
static int INERTIA_MOMENT
Definition: Server.h:107
static int PORT
Definition: Server.h:168
std::string getParameter(std::string parameter)
Definition: Server.cpp:411
static int GAME_OVER_WAIT
Definition: Server.h:99
static int CLANG_INFO_WIN
Definition: Server.h:61
static int GAME_LOGGING
Definition: Server.h:98
static double RECOVER_DEC
Definition: Server.h:176
static int BACK_PASSES
Definition: Server.h:45
static int OLCOACH_PORT
Definition: Server.h:145
static double WIND_RANDOM
Definition: Server.h:229
static std::string GAME_LOG_FIXED_NAME
Definition: Server.h:96
static int PEN_COACH_MOVES_PLAYERS
Definition: Server.h:149
static double CONTROL_RADIUS
Definition: Server.h:71
static int FOUL_CYCLES
Definition: Server.h:84
static double FOUL_DETECT_PROBABILITY
Definition: Server.h:85
static double GOAL_WIDTH
Definition: Server.h:100
static double PLAYER_WEIGHT
Definition: Server.h:165
static int FOUL_EXPONENT
Definition: Server.h:86
static double TACKLE_WIDTH
Definition: Server.h:210
static std::string LOG_DATE_FORMAT
Definition: Server.h:124
static double STOPPED_BALL_VEL
Definition: Server.h:199
static int FREE_KICK_FAULTS
Definition: Server.h:87
static double MAXPOWER
Definition: Server.h:134
static int CONNECT_WAIT
Definition: Server.h:70
static double WIND_NONE
Definition: Server.h:227
static double QUANTIZE_STEP
Definition: Server.h:173
static int KEEPAWAY
Definition: Server.h:108
static int SENSE_BODY_STEP
Definition: Server.h:188
static double KICK_RAND_FACTOR_R
Definition: Server.h:121
static double MINPOWER
Definition: Server.h:140
static int FREEFORM_WAIT_PERIOD
Definition: Server.h:89
static int PEN_SETUP_WAIT
Definition: Server.h:156
static int START_GOAL_R
Definition: Server.h:198
static double KICK_RAND
Definition: Server.h:119
static double SLOW_DOWN_FACTOR
Definition: Server.h:191
static std::string LANDMARK_FILE
Definition: Server.h:123
static double BALL_RAND
Definition: Server.h:48
static int SAY_COACH_MSG_SIZE
Definition: Server.h:183
static double PRAND_FACTOR_R
Definition: Server.h:170
static int COACH
Definition: Server.h:67
static double MAXMOMENT
Definition: Server.h:131
static double VISIBLE_DISTANCE
Definition: Server.h:223
static double CATCH_PROBABILITY
Definition: Server.h:54
static double MAXNECKANG
Definition: Server.h:132