?? serversettings.c
字號:
}/*! Set method for the 'dPlayerAccelMax' member variable. \param d a double value representing a new maximum acceleration of a player per cycle \return a boolean indicating whether the update was successful */bool ServerSettings::setPlayerAccelMax( double d ){ dPlayerAccelMax = d; return ( true );}/*! Get method for the 'dPlayerAccelMax' member variable. \return the maximum acceleration of a player per cycle */double ServerSettings::getPlayerAccelMax( ) const{ return ( dPlayerAccelMax );}/*! Set method for the 'dStaminaMax' member variable. \param d a double value representing a new maximum stamina of a player \return a boolean indicating whether the update was successful */bool ServerSettings::setStaminaMax( double d ){ dStaminaMax = d; return ( true );}/*! Get method for the 'dStaminaMax' member variable. \return the maximum stamina of a player */double ServerSettings::getStaminaMax( ) const{ return ( dStaminaMax );}/*! Set method for the 'dStaminaIncMax' member variable. \param d a double value representing a new maximum stamina increase of a player per cycle \return a boolean indicating whether the update was successful */bool ServerSettings::setStaminaIncMax( double d ){ dStaminaIncMax = d; return ( true );}/*! Get method for the 'dStaminaIncMax' member variable. \return the maximum stamina increase of a player per cycle */double ServerSettings::getStaminaIncMax( ) const{ return ( dStaminaIncMax );}/*! Set method for the 'dRecoverDecThr' member variable. \param d a double value representing a new percentage of stamina_max below which player recovery decreases \return a boolean indicating whether the update was successful */bool ServerSettings::setRecoverDecThr( double d ){ dRecoverDecThr = d; return ( true );}/*! Get method for the 'dRecoverDecThr' member variable. \return percentage of stamina_max below which player recovery decreases */double ServerSettings::getRecoverDecThr( ) const{ return ( dRecoverDecThr );}/*! Set method for the 'dRecoverDec' member variable. \param d a double value representing a new decrement step per cycle for player recovery \return a boolean indicating whether the update was successful */bool ServerSettings::setRecoverDec( double d ){ dRecoverDec = d; return ( true );}/*! Get method for the 'dRecoverDec' member variable. \return the decrement step per cycle for player recovery */double ServerSettings::getRecoverDec( ) const{ return ( dRecoverDec );}/*! Set method for the 'dRecoverMin' member variable. \param d a double value representing a new minimum player recovery \return a boolean indicating whether the update was successful */bool ServerSettings::setRecoverMin( double d ){ dRecoverMin = d; return ( true );}/*! Get method for the 'dRecoverMin' member variable. \return the minimum player recovery */double ServerSettings::getRecoverMin( ) const{ return ( dRecoverMin );}/*! Set method for the 'dEffortDecThr' member variable. \param d a double value representing a new percentage of stamina_max below which player effort capacity decreases \return a boolean indicating whether the update was successful */bool ServerSettings::setEffortDecThr( double d ){ dEffortDecThr = d; return ( true );}/*! Get method for the 'dEffortDecThr' member variable. \return the percentage of stamina_max below which player effort capacity decreases */double ServerSettings::getEffortDecThr( ) const{ return ( dEffortDecThr );}/*! Set method for the 'dEffortDec' member variable. \param d a double value representing a new decrement step per cycle for player effort capacity \return a boolean indicating whether the update was successful */bool ServerSettings::setEffortDec( double d ){ dEffortDec = d; return ( true );}/*! Get method for the 'dEffortDec' member variable. \return the decrement step per cycle for player effort capacity */double ServerSettings::getEffortDec( ) const{ return ( dEffortDec );}/*! Set method for the 'dEffortIncThr' member variable. \param d a double value representing a new percentage of stamina_max above which player effort capacity increases \return a boolean indicating whether the update was successful */bool ServerSettings::setEffortIncThr( double d ){ dEffortIncThr = d; return ( true );}/*! Get method for the 'dEffortIncThr' member variable. \return the percentage of stamina_max above which player effort capacity increases */double ServerSettings::getEffortIncThr( ) const{ return ( dEffortIncThr );}/*! Set method for the 'dEffortInc' member variable. \param d a double value representing a new increment step per cycle for player effort capacity \return a boolean indicating whether the update was successful */bool ServerSettings::setEffortInc( double d ){ dEffortInc = d; return ( true );}/*! Get method for the 'dEffortInc' member variable. \return the increment step per cycle for player effort capacity */double ServerSettings::getEffortInc( ) const{ return ( dEffortInc );}/*! Set method for the 'dEffortMin' member variable. \param d a double value representing a new minimum value for player effort \return a boolean indicating whether the update was successful */bool ServerSettings::setEffortMin( double d ){ dEffortMin = d; return ( true );}/*! Get method for the 'dEffortMin' member variable. \return the minimum value for player effort */double ServerSettings::getEffortMin( ) const{ return ( dEffortMin );}/*! Set method for the 'iHearMax' member variable. \param i an integer value representing a new maximum hearing capacity of a player (a player can hear iHearInc messages in iHearDecay simulation cycles) \return a boolean indicating whether the update was successful */bool ServerSettings::setHearMax( int i ){ iHearMax = i; return ( true );}/*! Get method for the 'iHearMax' member variable. \return the maximum hearing capacity of a player (a player can hear iHearInc messages in iHearDecay simulation cycles) */int ServerSettings::getHearMax( ) const{ return ( iHearMax );}/*! Set method for the 'iHearInc' member variable. \param i an integer value representing a new minimum hearing capacity of a player, i.e. the number of messages a player can hear in iHearDecay simulation cycles \return a boolean indicating whether the update was successful */bool ServerSettings::setHearInc( int i ){ iHearInc = i; return ( true );}/*! Get method for the 'iHearInc' member variable. \return the minimum hearing capacity of a player, i.e. the number of messages a player can hear in iHearDecay simulation cycles */int ServerSettings::getHearInc( ) const{ return ( iHearInc );}/*! Set method for the 'iHearDecay' member variable. \param i an integer value representing a new decay rate of player hearing capacity, i.e. minimum number of cycles for iHearInc messages \return a boolean indicating whether the update was successful */bool ServerSettings::setHearDecay( int i ){ iHearDecay = i; return ( true );}/*! Get method for the 'iHearDecay' member variable. \return the decay rate of player hearing capacity, i.e. minimum number of cycles for iHearInc messages */int ServerSettings::getHearDecay( ) const{ return ( iHearDecay );}/*! Set method for the 'dInertiaMoment' member variable. \param d a double value representing a new inertia moment of a player (affects actual turn angle depending on speed) \return a boolean indicating whether the update was successful */bool ServerSettings::setInertiaMoment( double d ){ dInertiaMoment = d; return ( true );}/*! Get method for the 'dInertiaMoment' member variable. \return the inertia moment of a player (affects actual turn angle depending on speed) */double ServerSettings::getInertiaMoment( ) const{ return ( dInertiaMoment );}/*! Set method for the 'iSenseBodyStep' member variable. \param i an integer value representing a new length of the interval (in ms) between sense_body information messages \return a boolean indicating whether the update was successful */bool ServerSettings::setSenseBodyStep( int i ){ iSenseBodyStep = i; return ( true );}/*! Get method for the 'iSenseBodyStep' member variable. \return the length of the interval (in ms) between sense_body information messages */int ServerSettings::getSenseBodyStep( ) const{ // NOTE: do not take slow down factor into account for send intervals // already done by server return iSenseBodyStep ; // * iSlowDownFactor );}/*! Set method for the 'dCatchableAreaL' member variable. \param d a double value representing a new length of the area around the goalkeeper in which he can catch the ball \return a boolean indicating whether the update was successful */bool ServerSettings::setCatchableAreaL( double d ){ dCatchableAreaL = d; return ( true );}/*! Get method for the 'dCatchableAreaL' member variable. \return the length of the area around the goalkeeper in which he can catch the ball */double ServerSettings::getCatchableAreaL( ) const{ return ( dCatchableAreaL );}/*! Set method for the 'dCatchableAreaW' member variable. \param d a double value representing a new width of the area around the goalkeeper in which he can catch the ball \return a boolean indicating whether the update was successful */bool ServerSettings::setCatchableAreaW( double d ){ dCatchableAreaW = d; return ( true );}/*! Get method for the 'dCatchableAreaW' member variable. \return the width of the area around the goalkeeper in which he can catch the ball */double ServerSettings::getCatchableAreaW( ) const{ return ( dCatchableAreaW );}/*! Set method for the 'dCatchProbability' member variable. \param d a double value representing a new probability for a goalkeeper to
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -