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

📄 serversettings.cpp

📁 University of Amsterdam的2003年robocup源程序代码
💻 CPP
📖 第 1 页 / 共 5 页
字号:
/*! Set method for the 'dKickPowerRate' member variable.    \param d a double value representing a new rate by which the 'Power'    argument in a 'kick' command is multiplied (thus determining the amount of    displacement of the ball as a result of the 'kick')    \return a boolean indicating whether the update was successful */bool ServerSettings::setKickPowerRate( double d ){  dKickPowerRate = d;  return ( true );}/*! Get method for the 'dKickPowerRate' member variable.    \return the rate by which the 'Power' argument in a 'kick' command is    multiplied (thus determining the amount of displacement of the ball as a    result of the 'kick') */double ServerSettings::getKickPowerRate( ) const{  return ( dKickPowerRate );}/*! Set method for the 'dKickRand' member variable.    \param d a double value representing a new random error in kick direction    \return a boolean indicating whether the update was successful */bool ServerSettings::setKickRand( double d ){  dKickRand = d;  return ( true );}/*! Get method for the 'dKickRand' member variable.    \return the random error in kick direction */double ServerSettings::getKickRand( ) const{  return ( dKickRand );}/*! Set method for the 'dVisibleAngle' member variable.    \param d a double value representing a new angle of the view cone of a    player in the standard view mode    \return a boolean indicating whether the update was successful */bool ServerSettings::setVisibleAngle( double d ){  dVisibleAngle = d;  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 t

⌨️ 快捷键说明

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