⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 serversettings.h

📁 自己写的robocup-2d程序
💻 H
📖 第 1 页 / 共 3 页
字号:
  int    iHalfTime;         /*!< half_time: the length (in seconds) of a single
                                 game half                                   */
  int    iDropBallTime;     /*!< drop_ball_time: the number of cycles to wait
                                 until dropping the ball automatically for free
                                 kicks, corner kicks, etc.                   */

  // speech-related parameters
  int    iSayMsgSize;       /*!< say_msg_size: the maximum length (in bytes) of
                                 a spoken message                            */

  // offside-related parameters
  bool   bUseOffside;       /*!< use_offside: a boolean flag indicating whether
                                 the offside rule should be applied or not   */
  double dOffsideActiveAreaSize;/*!< offside_active_area_size: offside active
                                     area size, i.e. radius of circle around
                                     the ball in which player can be offside */
  bool   bForbidKickOffOffside; /*!< forbid_kick_off_offside: a boolean flag
                                     indicating whether a kick from offside
                                     position is allowed                     */
  double dOffsideKickMargin;/*!< offside_kick_margin: offside kick margin,
                                 i.e. the minimum distance to the ball for
                                 offending players when a free kick for
                                 offside is taken                            */

  // log-related parameters
  bool   bVerbose;          /*!< verbose: flag indicating whether verbose mode
                                 is active or not; in verbose mode server sends
                                 extra error-information                     */
  int    iRecordVersion;    /*!< record_version: the type of log record      */
  bool   bRecordLog;        /*!< record_log: flag indicating whether log record
                                 for game should be created                  */
  bool   bSendLog;          /*!< send_log: flag indicating whether send client
                                 command log for game should be created      */
  bool   bLogTimes;         /*!< log_times: flag indicating whether ms should
                                 be written between cycles in log file       */
  char   strLogFile[ 256 ]; /*!< server log to store all actions received    */
  bool   bSynchMode;        /*!< synch_mode: indicates whether in sync. mode */
  bool   bFullStateL;       /*!< fullstate_l: indicates full_state left team.*/
  bool   bFullStateR;       /*!< fullstate_r: indicates full_state right team*/
              
  // all the parameters available in player.conf (for heterogeneous players)
  // NOTE: names in player.conf corresponding with member variables
  //       are listed between doxygen-tags to enable quick searching

  int    iPlayerTypes;             /*!< player_types: the number of player 
                                        types including the default types    */
  int    iSubsMax;                 /*!< subs_max: the maximum number of
                                        substitutions allowed during a game; 
                                        the value also indicates the maximum
                                        number of players allowed for each
                                        type                                 */
  double dPlayerSpeedMaxDeltaMin;  /*!< player_speed_max_delta_min: minimum
                                        delta for adjusting player_speed_max */
  double dPlayerSpeedMaxDeltaMax;  /*!< player_speed_max_delta_max: maximum
                                        delta for adjusting player_speed_max */
  double dStaminaIncMaxDeltaFactor;/*!< stamina_inc_max_delta_factor: amount by
                                        which delta is multiplied for
                                        stamina_inc_max                      */
  double dPlayerDecayDeltaMin;     /*!< player_decay_delta_min: minimum delta
                                        for adjusting player_decay           */
  double dPlayerDecayDeltaMax;     /*!< player_decay_delta_max: maximum delta
                                        for adjusting player_decay           */
  double dInertiaMomentDeltaFactor;/*!< inertia_moment_delta_factor: amount by
                                        which delta is multiplied for
                                        inertia_moment                       */
  double dDashPowerRateDeltaMin;   /*!< dash_power_rate_delta_min: minimum 
                                        delta for adjusting dash_power_rate  */
  double dDashPowerRateDeltaMax;   /*!< dash_power_rate_delta_max: maximum 
                                        delta for adjusting dash_power_rate  */
  double dPlayerSizeDeltaFactor;   /*!< player_size_delta_factor: amount delta
                                        is multiplied by for player_size     */
  double dKickableMarginDeltaMin;  /*!< kickable_margin_delta_min: minimum 
                                        delta for adjusting kickable_margin  */
  double dKickableMarginDeltaMax;  /*!< kickable_margin_delta_max: maximum 
                                        delta for adjusting kickable_margin  */
  double dKickRandDeltaFactor;     /*!< kick_rand_delta_factor: amount delta is
                                        multiplied by for kick_rand          */
  double dExtraStaminaDeltaMin;    /*!< extra_stamina_delta_min: minimum delta
                                        for adjusting extra_stamina          */
  double dExtraStaminaDeltaMax;    /*!< extra_stamina_delta_max: maximum delta
                                        for adjusting extra_stamina          */
  double dEffortMaxDeltaFactor;    /*!< effort_max_delta_factor: amount delta
                                        is multiplied by for effort_max      */
  double dEffortMinDeltaFactor;    /*!< effort_min_delta_factor: amount delta
                                        is multiplied by for effort_min      */
  double dNewDashPowerRateDeltaMin;/*!< new_dash_power_rate_delta_min: minimum
	                                delta for adjusting dash_power_rate,
					used from server 8.05                */
  double dNewDashPowerRateDeltaMax;/*!< new_dash_power_rate_delta_min: maximum
                                        delta for adjusting dash_power_rate,
                                        used from server 8.05                */
  double dNewStaminaIncMaxDeltaFactor;/*!< stamina_inc_max_delta_factor: amount
                                        which delta is multiplied for
                                        stamina_inc_max, used from server 8  */

  // other parameters
  int    iSlowDownFactor;          /*!< slow_down_factor: factor to slow down
                                        simulator and send intervals         */
  double dVisibleDistance;         /*!< visible_distance: distance within which
                                        objects are always 'visible' (even when
                                        not in view cone)                    */
  double dExtraStamina;            /*!< extra_stamina: extra stamina for a
                                        heterogeneous player                 */

  // penalty parameters
  double dPenDistX;                /*!< pen_dist_x: x distance for ball from
                                        goalline.                            */
  double dPenMaxGoalieDistX;       /*!< pen_max_goalie_dist_x: max goalie 
                                        distance before the goalline.        */
  bool   bPenAllowMultKicks;       /*!< pen_allow_mult_kicks: allow multiple
                                        kicks by the penalty kicker          */

  // tackle parameters 
  double dTackleDist;              /*!< tackle_dist: distance in front player 
                                        where tackle is possible.            */
  double dTackleBackDist;          /*!< tackle_dist: distance at back of  player 
                                        where tackle is possible.            */
  double dTackleWidth;             /*!< tackle_width: distance to side of player
                                        where tackle is possible.            */
  double dTackleExponent;          /*!< tackle_exponent: exponent need to 
                                        calculate prob.of success tackle     */
  int    iTackleCycles;            /*!< tackle_cycles: cycles immobile after 
                                        tackle                               */
  double dTacklePowerRate;         /*!< tacke_power_rate: acc. power tackle  */

  // parameters which depend on other values
  double dMaximalKickDist;         /*!< the maximum distance from a player for
                                        which the ball is still kickable     */

  // public methods
public:
  // constructor for ServerSettings class
  ServerSettings( );

  // methods 'setValue' and 'readValues' from superclass
  // GenericValues are overridden in this subclass
  bool setValue  ( const char *strName    , const char *strValue       );
  bool readValues( const char *strFilename, const char *Separator      );

  // set- and get methods for private member variables

  // set- and get methods for goal-related parameters
  bool   setGoalWidth                  ( double d    );
  double getGoalWidth                  (             ) const;

  // set- and get methods for player-related parameters
  bool   setPlayerSize                 ( double d    );
  double getPlayerSize                 (             ) const;
  bool   setPlayerDecay                ( double d    );
  double getPlayerDecay                (             ) const;
  bool   setPlayerRand                 ( double d    );
  double getPlayerRand                 (             ) const;
  bool   setPlayerWeight               ( double d    );
  double getPlayerWeight               (             ) const;
  bool   setPlayerSpeedMax             ( double d    );
  double getPlayerSpeedMax             (             ) const;
  bool   setPlayerAccelMax             ( double d    );
  double getPlayerAccelMax             (             ) const;

  // set- and get methods for stamina-related parameters
  bool   setStaminaMax                 ( double d    );
  double getStaminaMax                 (             ) const;
  bool   setStaminaIncMax              ( double d    );
  double getStaminaIncMax              (             ) const;
  bool   setRecoverDecThr              ( double d    );
  double getRecoverDecThr              (             ) const;
  bool   setRecoverDec                 ( double d    );
  double getRecoverDec                 (             ) const;
  bool   setRecoverMin                 ( double d    );
  double getRecoverMin                 (             ) const;
  bool   setEffortDecThr               ( double d    );
  double getEffortDecThr               (             ) const;
  bool   setEffortDec                  ( double d    );
  double getEffortDec                  (             ) const;
  bool   setEffortIncThr               ( double d    );
  double getEffortIncThr               (             ) const;
  bool   setEffortInc                  ( double d    );
  double getEffortInc                  (             ) const;
  bool   setEffortMin                  ( double d    );
  double getEffortMin                  (             ) const;

  // set- and get methods for parameters related to auditory perception
  bool   setHearMax                    ( int i       );
  int    getHearMax                    (             ) const;
  bool   setHearInc                    ( int i       );
  int    getHearInc                    (             ) const;
  bool   setHearDecay                  ( int i       );
  int    getHearDecay                  (             ) const;

  // set- and get methods for parameters related to player turn actions
  bool   setInertiaMoment              ( double d    );
  double getInertiaMoment              (             ) const;

  // set- and get methods for parameters related to sense_body information
  bool   setSenseBodyStep              ( int i       )      ;
  int    getSenseBodyStep              (             ) const;

  // set- and get methods for goalkeeper-related parameters
  bool   setCatchableAreaL             ( double d    );
  double getCatchableAreaL             (             ) const;
  bool   setCatchableAreaW             ( double d    );
  double getCatchableAreaW             (             ) const;
  bool   setCatchProbability           ( double d    );
  double getCatchProbability           (             ) const;
  bool   setCatchBanCycle              ( int    i    )      ;
  int    getCatchBanCycle              (             ) const;
  bool   setGoalieMaxMoves             ( int    i    )      ;
  int    getGoalieMaxMoves             (             ) const;

  // set- and get methods for ball-related parameters
  bool   setBallSize                   ( double d    );
  double getBallSize                   (             ) const;
  bool   setBallDecay                  ( double d    );
  double getBallDecay                  (             ) const;
  bool   setBallRand                   ( double d    );
  double getBallRand                   (             ) const;
  bool   setBallWeight                 ( double d    );
  double getBallWeight                 (             ) const;
  bool   setBallSpeedMax               ( double d    );
  double getBallSpeedMax               (             ) const;
  bool   setBallAccelMax               ( double d    );
  double getBallAccelMax               (             ) const;

  // set- and get methods for wind-related parameters
  bool   setWindForce                  ( double d    );
  double getWindForce                  (             ) const;
  bool   setWindDir                    ( double d    );
  double getWindDir                    (             ) const;
  bool   setWindRand                   ( double d    );
  double getWindRand                   (             ) const;
  bool   setWindRandom                 ( bool   b    );
  bool   getWindRandom                 (             ) const;

  // set- and get methods for parameters related to 'dash' and 'kick' commands
  bool   setKickableMargin             ( double d    );
  double getKickableMargin             (             ) const;
  bool   setCkickMargin                ( double d    );
  double getCkickMargin                (             ) const;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -