classplayer.html

来自「仿真人工智能是指用人工的方法和技术」· HTML 代码 · 共 781 行 · 第 1/4 页

HTML
781
字号
        <tr>          <td class="md" nowrap valign="top"> bool Player::shallISaySomething </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This method determines whether a player should say something. This is based on several factors: 1. The difference with the last say message should be equal or larger than the server paramater hear_decay 2. Always say something when time is stopped 3. The outside player in the opposite rectangle in which the ball is located equals this agent. <dl compact><dt><b>Returns: </b><dd>bool indiciating whether the agent should say a message </dl><p>Definition at line <a class="el" href="Player_8C-source.html#l00650">650</a> of file <a class="el" href="Player_8C-source.html">Player.C</a>.<p>References <a class="el" href="Player_8C-source.html#l00665">amIAgentToSaySomething</a>(), <a class="el" href="WorldModel_8C-source.html#l00189">WorldModel::getCurrentCycle</a>(), <a class="el" href="ServerSettings_8C-source.html#l00847">ServerSettings::getHearDecay</a>(), <a class="el" href="Player_8h-source.html#l00059">m_lastSay</a>, <a class="el" href="BasicPlayer_8h-source.html#l00059">BasicPlayer::SS</a>, and <a class="el" href="BasicPlayer_8h-source.html#l00058">BasicPlayer::WM</a>.<p>Referenced by <a class="el" href="Player_8C-source.html#l00092">mainLoop</a>().    </td>  </tr></table><a name="a6" doxytag="Player::showStringCommands"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void Player::showStringCommands </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">ostream &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>out</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This method prints the possible commands that can be entered by the user. The whole name can be entered to perform the corresponding command, but normally only the first character is sufficient. This is indicated by putting brackets around the part of the command that is not needed. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>out</em>&nbsp;</td><td>output stream to which the possible commands are printed </td></tr></table></dl><p>Definition at line <a class="el" href="Player_8C-source.html#l00484">484</a> of file <a class="el" href="Player_8C-source.html">Player.C</a>.<p>Referenced by <a class="el" href="Player_8C-source.html#l00512">executeStringCommand</a>().    </td>  </tr></table><a name="a8" doxytag="Player::test_only_update"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void Player::test_only_update </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This method does nothing except updating the worldmodel after each arrival of a see or sense_body message. Using this test program it is possible to control the commands of the agent using the standard input and see the resulting behavior of the agent. <p>Definition at line <a class="el" href="Player_8C-source.html#l00821">821</a> of file <a class="el" href="Player_8C-source.html">Player.C</a>.<p>References <a class="el" href="Player_8h-source.html#l00057">bContLoop</a>, <a class="el" href="WorldModelUpdate_8C-source.html#l00410">WorldModel::updateAll</a>(), <a class="el" href="WorldModel_8C-source.html#l01234">WorldModel::waitForNewInformation</a>(), and <a class="el" href="BasicPlayer_8h-source.html#l00058">BasicPlayer::WM</a>.<p>Referenced by <a class="el" href="main_8C-source.html#l00059">main</a>().    </td>  </tr></table><hr><h2>Member Data Documentation</h2><a name="o1" doxytag="Player::bContLoop"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> bool Player::bContLoop<code> [private]</code>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>is server is alive <p>Definition at line <a class="el" href="Player_8h-source.html#l00057">57</a> of file <a class="el" href="Player_8h-source.html">Player.h</a>.<p>Referenced by <a class="el" href="Player_8C-source.html#l00512">executeStringCommand</a>(), <a class="el" href="Player_8C-source.html#l00092">mainLoop</a>(), <a class="el" href="Player_8C-source.html#l00058">Player</a>(), and <a class="el" href="Player_8C-source.html#l00821">test_only_update</a>().    </td>  </tr></table><a name="o0" doxytag="Player::formations"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> <a class="el" href="classFormations.html">Formations</a>* Player::formations<code> [private]</code>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>all formation information <p>Definition at line <a class="el" href="Player_8h-source.html#l00056">56</a> of file <a class="el" href="Player_8h-source.html">Player.h</a>.<p>Referenced by <a class="el" href="Player_8C-source.html#l00182">deMeer5</a>(), <a class="el" href="Player_8C-source.html#l00278">deMeer5_goalie</a>(), <a class="el" href="Player_8C-source.html#l00434">getStrategicPosition</a>(), <a class="el" href="Player_8C-source.html#l00092">mainLoop</a>(), and <a class="el" href="Player_8C-source.html#l00058">Player</a>().    </td>  </tr></table><a name="o2" doxytag="Player::m_lastSay"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> int Player::m_lastSay<code> [private]</code>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>last cycle communicated <p>Definition at line <a class="el" href="Player_8h-source.html#l00059">59</a> of file <a class="el" href="Player_8h-source.html">Player.h</a>.<p>Referenced by <a class="el" href="Player_8C-source.html#l00092">mainLoop</a>(), <a class="el" href="Player_8C-source.html#l00058">Player</a>(), and <a class="el" href="Player_8C-source.html#l00650">shallISaySomething</a>().    </td>  </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="Player_8h-source.html">Player.h</a><li><a class="el" href="Player_8C-source.html">Player.C</a></ul><hr><address><small>Generated on Thu Mar 7 00:37:55 2002 for UvA Trilearn 2001 by<a href="http://www.doxygen.org/index.html"><img src="doxygen.gif" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.12 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, &copy;&nbsp;1997-2001</small></address></body></html>

⌨️ 快捷键说明

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