classformationtypeinfo.html
来自「仿真人工智能是指用人工的方法和技术」· HTML 代码 · 共 726 行 · 第 1/3 页
HTML
726 行
</td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method sets the x coordinate of the home position for the player with role number 'atIndex'. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>x</em> </td><td>x coordinate for the home position </td></tr><tr><td valign=top><em>atIndex</em> </td><td>role in formation for which x coordinate should be set. </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether update was succesfull. </dl><p>Definition at line <a class="el" href="Formations_8C-source.html#l00355">355</a> of file <a class="el" href="Formations_8C-source.html">Formations.C</a>.<p>References <a class="el" href="Formations_8h-source.html#l00133">posHome</a>, and <a class="el" href="Geometry_8C-source.html#l00534">VecPosition::setX</a>().<p>Referenced by <a class="el" href="Formations_8C-source.html#l00534">Formations::readFormations</a>(). </td> </tr></table><a name="a6" doxytag="FormationTypeInfo::setYPosHome"></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 FormationTypeInfo::setYPosHome </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">double </td> <td class="mdname" nowrap> <em>y</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>atIndex</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method sets the y coordinate of the home position for the player with role number 'atIndex'. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>y</em> </td><td>y coordinate for the home position </td></tr><tr><td valign=top><em>atIndex</em> </td><td>role number for which y coordinate should be set. </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether update was succesfull. </dl><p>Definition at line <a class="el" href="Formations_8C-source.html#l00366">366</a> of file <a class="el" href="Formations_8C-source.html">Formations.C</a>.<p>References <a class="el" href="Formations_8h-source.html#l00133">posHome</a>, and <a class="el" href="Geometry_8C-source.html#l00550">VecPosition::setY</a>().<p>Referenced by <a class="el" href="Formations_8C-source.html#l00534">Formations::readFormations</a>(). </td> </tr></table><a name="a1" doxytag="FormationTypeInfo::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 FormationTypeInfo::show </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">ostream & </td> <td class="mdname1" valign="top" nowrap> <em>os</em> = cout </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method prints all the information about this formation to the specified output stream. The format is the following:<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>os</em> </td><td>output stream for output. </td></tr></table></dl><p>Definition at line <a class="el" href="Formations_8C-source.html#l00282">282</a> of file <a class="el" href="Formations_8C-source.html">Formations.C</a>.<p>References <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="Formations_8h-source.html#l00134">playerType</a>, <a class="el" href="Formations_8h-source.html#l00135">playerTypeInfo</a>, and <a class="el" href="Formations_8h-source.html#l00133">posHome</a>.<p>Referenced by <a class="el" href="Formations_8C-source.html#l00461">Formations::show</a>(). </td> </tr></table><hr><h2>Member Data Documentation</h2><a name="o0" doxytag="FormationTypeInfo::formationType"></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> FormationTypeInfo::formationType<code> [private]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>type of this formation <p>Definition at line <a class="el" href="Formations_8h-source.html#l00132">132</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#l00266">getFormationType</a>(), and <a class="el" href="Formations_8C-source.html#l00258">setFormationType</a>(). </td> </tr></table><a name="o2" doxytag="FormationTypeInfo::playerType"></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#a248">PlayerT</a> FormationTypeInfo::playerType[ MAX_TEAMMATES ]<code> [private]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>player_types for roles <p>Definition at line <a class="el" href="Formations_8h-source.html#l00134">134</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#l00396">getPlayerType</a>(), <a class="el" href="Formations_8C-source.html#l00426">getPlayerTypeInfoOfPlayer</a>(), <a class="el" href="Formations_8C-source.html#l00387">setPlayerType</a>(), and <a class="el" href="Formations_8C-source.html#l00282">show</a>(). </td> </tr></table><a name="o3" doxytag="FormationTypeInfo::playerTypeInfo"></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="classPlayerTypeInfo.html">PlayerTypeInfo</a> FormationTypeInfo::playerTypeInfo[ MAX_PLAYER_TYPES ]<code> [private]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>info for roles <p>Definition at line <a class="el" href="Formations_8h-source.html#l00135">135</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#l00416">getPlayerTypeInfo</a>(), <a class="el" href="Formations_8C-source.html#l00426">getPlayerTypeInfoOfPlayer</a>(), <a class="el" href="Formations_8C-source.html#l00406">setPlayerTypeInfo</a>(), and <a class="el" href="Formations_8C-source.html#l00282">show</a>(). </td> </tr></table><a name="o1" doxytag="FormationTypeInfo::posHome"></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="classVecPosition.html">VecPosition</a> FormationTypeInfo::posHome[ MAX_TEAMMATES ]<code> [private]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>home position for roles <p>Definition at line <a class="el" href="Formations_8h-source.html#l00133">133</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#l00377">getPosHome</a>(), <a class="el" href="Formations_8C-source.html#l00344">setPosHome</a>(), <a class="el" href="Formations_8C-source.html#l00355">setXPosHome</a>(), <a class="el" href="Formations_8C-source.html#l00366">setYPosHome</a>(), and <a class="el" href="Formations_8C-source.html#l00282">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>, © 1997-2001</small></address></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?