22 #include <boost/regex.hpp>
412 boost::regex parameter_regex(
"\\(" + parameter +
"\\s+([\\w\\-\\.~%\"/]*)\\)");
414 if (boost::regex_search(
server_params.c_str(), match, parameter_regex)) {
415 return std::string() + match[1];
417 std::cerr <<
"Server::getParameter(string) -> search failed miserably for parameter " << parameter << std::endl;
static double PLAYER_SIZE
static int DROP_BALL_TIME
static int PEN_READY_WAIT
static int TACKLE_EXPONENT
static double PEN_MAX_GOALIE_DIST_X
static int PENALTY_SHOOT_OUTS
static int GOALIE_MAX_MOVES
static int FREEFORM_SEND_PERIOD
static std::string TEXT_LOG_FIXED_NAME
static int STAMINA_CAPACITY
static int KEEPAWAY_LENGTH
static double CKICK_MARGIN
static int SYNCH_MICRO_SLEEP
static int NR_NORMAL_HALFS
static double BALL_SPEED_MAX
static int COACH_W_REFEREE
static double PRAND_FACTOR_L
static int KEEPAWAY_WIDTH
static double QUANTIZE_STEP_L
static int CLANG_META_WIN
static int PROPER_GOAL_KICKS
static double SLOWNESS_ON_TOP_FOR_RIGHT_TEAM
static double MINNECKMOMENT
static double TEAM_ACTUATOR_NOISE
static int SAY_COACH_CNT_MAX
static int GAME_LOG_DATED
static int CATCH_BAN_CYCLE
static double DASH_ANGLE_STEP
static double PEN_RANDOM_WINNER
static int RECORD_MESSAGES
static int GAME_LOG_VERSION
static int OLD_COACH_HEAR
static int CLANG_MESS_DELAY
static std::string TEXT_LOG_DIR
static double MIN_DASH_ANGLE
static std::string GAME_LOG_DIR
static double PLAYER_ACCEL_MAX
static std::string TEAM_L_START
Server(std::string server_params)
static int PEN_TAKEN_WAIT
static int PEN_ALLOW_MULT_KICKS
static double KICK_RAND_FACTOR_L
static double TACKLE_RAND_FACTOR
static double EFFORT_INC_THR
static int CLANG_WIN_SIZE
static double PLAYER_DECAY
static int KEEPAWAY_LOGGING
static int GAME_LOG_FIXED
static int EXTRA_HALF_TIME
static int NR_EXTRA_HALFS
static double PLAYER_SPEED_MAX_MIN
static int MAX_GOAL_KICKS
static double MAXNECKMOMENT
static double TACKLE_DIST
static int CLANG_RULE_WIN
std::string server_params
static int KEEPAWAY_LOG_DATED
static int POINT_TO_DURATION
static double PLAYER_SPEED_MAX
static double VISIBLE_ANGLE
static int GAME_LOG_COMPRESSION
static int TEXT_LOG_DATED
static double KICK_POWER_RATE
static std::string KEEPAWAY_LOG_DIR
static double BALL_STUCK_AREA
static double OFFSIDE_KICK_MARGIN
static double SIDE_DASH_RATE
static double BALL_WEIGHT
static double TACKLE_BACK_DIST
static int PEN_BEFORE_SETUP_WAIT
static int KEEPAWAY_LOG_FIXED
static double PLAYER_RAND
static double BALL_ACCEL_MAX
static double AUDIO_CUT_DIST
static double CATCHABLE_AREA_L
static double RED_CARD_PROBABILITY
static int KEEPAWAY_START
static double MAX_TACKLE_POWER
static int TEXT_LOG_COMPRESSION
static double SLOWNESS_ON_TOP_FOR_LEFT_TEAM
static double DASH_POWER_RATE
static double OFFSIDE_ACTIVE_AREA_SIZE
static double MAX_BACK_TACKLE_POWER
static int FORBID_KICK_OFF_OFFSIDE
static std::string KEEPAWAY_LOG_FIXED_NAME
static int CLANG_DEFINE_WIN
static int PEN_MAX_EXTRA_KICKS
static int SYNCH_SEE_OFFSET
static double RECOVER_DEC_THR
static double MAX_DASH_ANGLE
static double RECOVER_INIT
static std::string TEAM_R_START
static double KICKABLE_MARGIN
static double EFFORT_INIT
static double BACK_DASH_RATE
static int SIMULATOR_STEP
static double EFFORT_DEC_THR
static double MIN_DASH_POWER
static double TACKLE_POWER_RATE
static double RECOVER_MIN
static double CATCHABLE_AREA_W
static int TEXT_LOG_FIXED
static int STAMINA_INC_MAX
static int CLANG_MESS_PER_CYCLE
static int CLANG_ADVICE_WIN
static double MAX_DASH_POWER
static int INERTIA_MOMENT
std::string getParameter(std::string parameter)
static int GAME_OVER_WAIT
static int CLANG_INFO_WIN
static double RECOVER_DEC
static double WIND_RANDOM
static std::string GAME_LOG_FIXED_NAME
static int PEN_COACH_MOVES_PLAYERS
static double CONTROL_RADIUS
static double FOUL_DETECT_PROBABILITY
static double PLAYER_WEIGHT
static double TACKLE_WIDTH
static std::string LOG_DATE_FORMAT
static double STOPPED_BALL_VEL
static int FREE_KICK_FAULTS
static double QUANTIZE_STEP
static int SENSE_BODY_STEP
static double KICK_RAND_FACTOR_R
static int FREEFORM_WAIT_PERIOD
static int PEN_SETUP_WAIT
static double SLOW_DOWN_FACTOR
static std::string LANDMARK_FILE
static int SAY_COACH_MSG_SIZE
static double PRAND_FACTOR_R
static double VISIBLE_DISTANCE
static double CATCH_PROBABILITY