classformations.html

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

HTML
524
字号
Referenced by <a class="el" href="Player_8C-source.html#l00434">Player::getStrategicPosition</a>().    </td>  </tr></table><a name="a3" doxytag="Formations::readFormations"></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 Formations::readFormations </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const char *&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>strFile</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 reads the formations from the file 'strFile' and has the following format:<ul><li>x coordinate of the home position for all the roles<li>y coordinate of the home position for all the roles<li>the player types for all the roles<li>the x attraction for all the player types<li>the y attraction for all the player types<li>indication whether to stay behind the ball for all the player types<li>minimal x coordinate for all the player types<li>maximal x coordinate for all the player types </ul><dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>strFile</em>&nbsp;</td><td>string representation of the file. </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool when file was read in succesfully. </dl><p>Definition at line <a class="el" href="Formations_8C-source.html#l00534">534</a> of file <a class="el" href="Formations_8C-source.html">Formations.C</a>.<p>References <a class="el" href="Formations_8h-source.html#l00166">formations</a>, <a class="el" href="Formations_8C-source.html#l00416">FormationTypeInfo::getPlayerTypeInfo</a>(), <a class="el" href="Parse_8C-source.html#l00058">Parse::gotoFirstNonSpace</a>(), <a class="el" href="SoccerTypes_8h-source.html#l00063">MAX_PLAYER_TYPES</a>, <a class="el" href="SoccerTypes_8h-source.html#l00061">MAX_TEAMMATES</a>, <a class="el" href="Parse_8C-source.html#l00140">Parse::parseFirstDouble</a>(), <a class="el" href="Parse_8C-source.html#l00107">Parse::parseFirstInt</a>(), <a class="el" href="SoccerTypes_8h-source.html#l00316">PlayerT</a>, <a class="el" href="Formations_8C-source.html#l00138">PlayerTypeInfo::setAttrX</a>(), <a class="el" href="Formations_8C-source.html#l00164">PlayerTypeInfo::setAttrY</a>(), <a class="el" href="Formations_8C-source.html#l00229">PlayerTypeInfo::setBehindBall</a>(), <a class="el" href="Formations_8C-source.html#l00207">PlayerTypeInfo::setMaxX</a>(), <a class="el" href="Formations_8C-source.html#l00187">PlayerTypeInfo::setMinX</a>(), <a class="el" href="Formations_8C-source.html#l00387">FormationTypeInfo::setPlayerType</a>(), <a class="el" href="Formations_8C-source.html#l00355">FormationTypeInfo::setXPosHome</a>(), and <a class="el" href="Formations_8C-source.html#l00366">FormationTypeInfo::setYPosHome</a>().<p>Referenced by <a class="el" href="Formations_8C-source.html#l00443">Formations</a>().    </td>  </tr></table><a name="a4" doxytag="Formations::setFormation"></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 Formations::setFormation </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="SoccerTypes_8h.html#a249">FormationT</a>&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>formation</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 sets the current formation. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>formation</em>&nbsp;</td><td>new current formation </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether the update was successful </dl><p>Definition at line <a class="el" href="Formations_8C-source.html#l00635">635</a> of file <a class="el" href="Formations_8C-source.html">Formations.C</a>.<p>References <a class="el" href="Formations_8h-source.html#l00167">curFormation</a>, and <a class="el" href="SoccerTypes_8h-source.html#l00329">FormationT</a>.<p>Referenced by <a class="el" href="Player_8C-source.html#l00182">Player::deMeer5</a>(), and <a class="el" href="Player_8C-source.html#l00278">Player::deMeer5_goalie</a>().    </td>  </tr></table><a name="a6" doxytag="Formations::setPlayerInFormation"></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 Formations::setPlayerInFormation </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>iNumber</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 sets the player number of the agent in the current formation to 'iNumber'. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>iNumber</em>&nbsp;</td><td>new player number for this agent </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether the update was succesfull </dl><p>Definition at line <a class="el" href="Formations_8C-source.html#l00652">652</a> of file <a class="el" href="Formations_8C-source.html">Formations.C</a>.<p>References <a class="el" href="Formations_8h-source.html#l00168">iPlayerInFormation</a>.<p>Referenced by <a class="el" href="Formations_8C-source.html#l00443">Formations</a>().    </td>  </tr></table><a name="a1" doxytag="Formations::show"></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 Formations::show </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>os</em> = cout          </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 methods prints all the information of the different formation types to the output stream os and furthermore prints the current formation and the role number of the agent in this formation. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>os</em>&nbsp;</td><td>output stream to which output is written. </td></tr></table></dl><p>Definition at line <a class="el" href="Formations_8C-source.html#l00461">461</a> of file <a class="el" href="Formations_8C-source.html">Formations.C</a>.<p>References <a class="el" href="Formations_8h-source.html#l00167">curFormation</a>, <a class="el" href="Formations_8h-source.html#l00166">formations</a>, <a class="el" href="Formations_8h-source.html#l00168">iPlayerInFormation</a>, <a class="el" href="SoccerTypes_8h-source.html#l00065">MAX_FORMATION_TYPES</a>, and <a class="el" href="Formations_8C-source.html#l00282">FormationTypeInfo::show</a>().    </td>  </tr></table><hr><h2>Member Data Documentation</h2><a name="o1" doxytag="Formations::curFormation"></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="SoccerTypes_8h.html#a249">FormationT</a> Formations::curFormation<code> [private]</code>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>type of the current formation <p>Definition at line <a class="el" href="Formations_8h-source.html#l00167">167</a> of file <a class="el" href="Formations_8h-source.html">Formations.h</a>.<p>Referenced by <a class="el" href="Formations_8C-source.html#l00443">Formations</a>(), <a class="el" href="Formations_8C-source.html#l00643">getFormation</a>(), <a class="el" href="Formations_8C-source.html#l00667">getPlayerType</a>(), <a class="el" href="Formations_8C-source.html#l00488">getStrategicPosition</a>(), <a class="el" href="Formations_8C-source.html#l00635">setFormation</a>(), and <a class="el" href="Formations_8C-source.html#l00461">show</a>().    </td>  </tr></table><a name="o0" doxytag="Formations::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="classFormationTypeInfo.html">FormationTypeInfo</a> Formations::formations[ MAX_FORMATION_TYPES ]<code> [private]</code>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>stored formations <p>Definition at line <a class="el" href="Formations_8h-source.html#l00166">166</a> of file <a class="el" href="Formations_8h-source.html">Formations.h</a>.<p>Referenced by <a class="el" href="Formations_8C-source.html#l00667">getPlayerType</a>(), <a class="el" href="Formations_8C-source.html#l00488">getStrategicPosition</a>(), <a class="el" href="Formations_8C-source.html#l00534">readFormations</a>(), and <a class="el" href="Formations_8C-source.html#l00461">show</a>().    </td>  </tr></table><a name="o2" doxytag="Formations::iPlayerInFormation"></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 Formations::iPlayerInFormation<code> [private]</code>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>role agent in current formation <p>Definition at line <a class="el" href="Formations_8h-source.html#l00168">168</a> of file <a class="el" href="Formations_8h-source.html">Formations.h</a>.<p>Referenced by <a class="el" href="Formations_8C-source.html#l00660">getPlayerInFormation</a>(), <a class="el" href="Formations_8C-source.html#l00667">getPlayerType</a>(), <a class="el" href="Formations_8C-source.html#l00652">setPlayerInFormation</a>(), and <a class="el" href="Formations_8C-source.html#l00461">show</a>().    </td>  </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="Formations_8h-source.html">Formations.h</a><li><a class="el" href="Formations_8C-source.html">Formations.C</a></ul><hr><address><small>Generated on Thu Mar 7 00:37:54 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 + -
显示快捷键?