serversettings.c

来自「机器足球2D比赛程序 对trlen_base_2002的改进」· C语言 代码 · 共 1,591 行 · 第 1/5 页

C
1,591
字号
  return ( true );}/*! Get method for the 'dVisibleAngle' member variable.    \return the angle of the view cone of a player in the standard view mode */double ServerSettings::getVisibleAngle( ) const{  return ( dVisibleAngle );}/*! Set method for the 'dAudioCutDist' member variable.    \param d a double value representing a new maximum distance over which a    spoken message can be heard    \return a boolean indicating whether the update was successful */bool ServerSettings::setAudioCutDist( double d ){  dAudioCutDist = d;  return ( true );}/*! Get method for the 'dAudioCutDist' member variable.    \return the maximum distance over which a spoken message can be heard */double ServerSettings::getAudioCutDist( ) const{  return ( dAudioCutDist );}/*! Set method for the 'dQuantizeStep' member variable.    \param d a double value representing a new quantization step for the    distance of moving objects    \return a boolean indicating whether the update was successful */bool ServerSettings::setQuantizeStep( double d ){  dQuantizeStep = d;  return ( true );}/*! Get method for the 'dQuantizeStep' member variable.    \return the quantization step for the distance of moving objects */double ServerSettings::getQuantizeStep( ) const{  return ( dQuantizeStep );}/*! Set method for the 'dQuantizeStepL' member variable.    \param d a double value representing a new quantization step for the    distance of landmarks    \return a boolean indicating whether the update was successful */bool ServerSettings::setQuantizeStepL( double d ){  dQuantizeStepL = d;  return ( true );}/*! Get method for the 'dQuantizeStepL' member variable.    \return the quantization step for the distance of landmarks */double ServerSettings::getQuantizeStepL( ) const{  return ( dQuantizeStepL );}/*! Set method for the 'iMaxPower' member variable.    \param i an integer value representing a new maximum power for a dash/kick    \return a boolean indicating whether the update was successful */bool ServerSettings::setMaxPower( int i ){  iMaxPower = i;  return ( true );}/*! Get method for the 'iMaxPower' member variable.    \return the maximum power for a dash/kick */int ServerSettings::getMaxPower( ) const{  return ( iMaxPower );}/*! Set method for the 'iMinPower' member variable.    \param i an integer value representing a new minimum power for a dash/kick    \return a boolean indicating whether the update was successful */bool ServerSettings::setMinPower( int i ){  iMinPower = i;  return ( true );}/*! Get method for the 'iMinPower' member variable.    \return the minimum power for a dash/kick */int ServerSettings::getMinPower( ) const{  return ( iMinPower );}/*! Set method for the 'iMaxMoment' member variable.    \param i an integer value representing a new maximum angle for a turn/kick    \return a boolean indicating whether the update was successful */bool ServerSettings::setMaxMoment( int i ){  iMaxMoment = i;  return ( true );}/*! Get method for the 'iMaxMoment' member variable.    \return the maximum angle for a turn/kick */int ServerSettings::getMaxMoment( ) const{  return ( iMaxMoment );}/*! Set method for the 'iMinMoment' member variable.    \param i an integer value representing a new minimum angle for a turn/kick    \return a boolean indicating whether the update was successful */bool ServerSettings::setMinMoment( int i ){  iMinMoment = i;  return ( true );}/*! Get method for the 'iMinMoment' member variable.    \return the minimum angle for a turn/kick */int ServerSettings::getMinMoment( ) const{  return ( iMinMoment );}/*! Set method for the 'iMaxNeckMoment' member variable.    \param i an integer value representing a new maximum angle for a turnneck    \return a boolean indicating whether the update was successful */bool ServerSettings::setMaxNeckMoment( int i ){  iMaxNeckMoment = i;  return ( true );}/*! Get method for the 'iMaxNeckMoment' member variable.    \return the maximum angle for a turnneck */int ServerSettings::getMaxNeckMoment( ) const{  return ( iMaxNeckMoment );}/*! Set method for the 'iMinNeckMoment' member variable.    \param i an integer value representing a new minimum angle for a turnneck    \return a boolean indicating whether the update was successful */bool ServerSettings::setMinNeckMoment( int i ){  iMinNeckMoment = i;  return ( true );}/*! Get method for the 'iMinNeckMoment' member variable.    \return the minimum angle for a turnneck */int ServerSettings::getMinNeckMoment( ) const{  return ( iMinNeckMoment );}/*! Set method for the 'iMaxNeckAng' member variable.    \param i an integer value representing a new maximum neck angle rel. to body    \return a boolean indicating whether the update was successful */bool ServerSettings::setMaxNeckAng( int i ){  iMaxNeckAng = i;  return ( true );}/*! Get method for the 'iMaxNeckAng' member variable.    \return the maximum neck angle relative to body */int ServerSettings::getMaxNeckAng( ) const{  return ( iMaxNeckAng );}/*! Set method for the 'iMinNeckAng' member variable.    \param i an integer value representing a new minimum neck angle rel. to body    \return a boolean indicating whether the update was successful */bool ServerSettings::setMinNeckAng( int i ){  iMinNeckAng = i;  return ( true );}/*! Get method for the 'iMinNeckAng' member variable.    \return the minimum neck angle relative to body */int ServerSettings::getMinNeckAng( ) const{  return ( iMinNeckAng );}/*! Set method for the 'iPort' member variable.    \param i an integer value representing a new port number for a player    connection    \return a boolean indicating whether the update was successful */bool ServerSettings::setPort( int i ){  iPort = i;  return ( true );}/*! Get method for the 'iPort' member variable.    \return the port number for a player connection */int ServerSettings::getPort( ) const{  return ( iPort );}/*! Set method for the 'iCoachPort' member variable.    \param i an integer value representing a new port number for a coach    connection    \return a boolean indicating whether the update was successful */bool ServerSettings::setCoachPort( int i ){  iCoachPort = i;  return ( true );}/*! Get method for the 'iCoachPort' member variable.    \return the port number for a coach connection */int ServerSettings::getCoachPort( ) const{  return ( iCoachPort );}/*! Set method for the 'iOlCoachPort' member variable.    \param i an integer value representing a new port number for an online             coach connection    \return a boolean indicating whether the update was successful */bool ServerSettings::setOlCoachPort( int i ){  iOlCoachPort = i;  return ( true );}/*! Get method for the 'iOlCoachPort' member variable.    \return the port number for an online coach connection */int ServerSettings::getOlCoachPort( ) const{  return ( iOlCoachPort );}/*! Set method for the 'iSayCoachCntMax' member variable.    \param i an integer value representing a new maximum number of coach    messages possible    \return a boolean indicating whether the update was successful */bool ServerSettings::setSayCoachCntMax( int i ){  iSayCoachCntMax = i;  return ( true );}/*! Get method for the 'iSayCoachCntMax' member variable.    \return the maximum number of coach messages possible */int ServerSettings::getSayCoachCntMax( ) const{  return ( iSayCoachCntMax );}/*! Set method for the 'iSayCoachMsgSize' member variable.    \param i an integer value representing a new maximum size of coach messages    \return a boolean indicating whether the update was successful */bool ServerSettings::setSayCoachMsgSize( int i ){  iSayCoachMsgSize = i;  return ( true );}/*! Get method for the 'iSayCoachMsgSize' member variable.    \return the maximum size of coach messages */int ServerSettings::getSayCoachMsgSize( ) const{  return ( iSayCoachMsgSize );}/*! Set method for the 'iClangWinSize' member variable.    \param i an integer value representing a new time window which controls how    many coach messages can be sent    \return a boolean indicating whether the update was successful */bool ServerSettings::setClangWinSize( int i ){  iClangWinSize = i;  return ( true );}/*! Get method for the 'iClangWinSize' member variable.    \return time window which controls how many coach messages can be sent */int ServerSettings::getClangWinSize( ) const{  return ( iClangWinSize );}/*! Set method for the 'iClangDefineWin' member variable.    \param i an integer value representing a new number of define messages by    the coach per time window    \return a boolean indicating whether the update was successful */bool ServerSettings::setClangDefineWin( int i ){  iClangDefineWin = i;  return ( true );}/*! Get method for the 'iClangDefineWin' member variable.    \return the number of define messages by the coach per time window */int ServerSettings::getClangDefineWin( ) const{  return ( iClangDefineWin );}/*! Set method for the 'iClangMetaWin' member variable.    \param i an integer value representing a new number of meta messages by the    coach per time window    \return a boolean indicating whether the update was successful */bool ServerSettings::setClangMetaWin( int i ){  iClangMetaWin = i;  return (

⌨️ 快捷键说明

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