classformationtypeinfo.html
来自「仿真人工智能是指用人工的方法和技术」· HTML 代码 · 共 726 行 · 第 1/3 页
HTML
726 行
</tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method returns the home position for the player with role number atIndex in this formation. The home position is the position from which the strategic position is calculated and could be interpreted as the position a player is located when the ball is at the position (0,0). <dl compact><dt><b>Returns: </b><dd>home position for player number at index 'atIndex' </dl><p>Definition at line <a class="el" href="Formations_8C-source.html#l00377">377</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>. </td> </tr></table><a name="a2" doxytag="FormationTypeInfo::setFormationType"></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::setFormationType </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="SoccerTypes_8h.html#a249">FormationT</a> </td> <td class="mdname1" valign="top" nowrap> <em>type</em> </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 sets the current formation type for this class. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>type</em> </td><td>new formation type for this class. </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether update was successful. </dl><p>Definition at line <a class="el" href="Formations_8C-source.html#l00258">258</a> of file <a class="el" href="Formations_8C-source.html">Formations.C</a>.<p>References <a class="el" href="SoccerTypes_8h-source.html#l00329">FormationT</a>, and <a class="el" href="Formations_8h-source.html#l00132">formationType</a>. </td> </tr></table><a name="a8" doxytag="FormationTypeInfo::setPlayerType"></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::setPlayerType </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="SoccerTypes_8h.html#a248">PlayerT</a> </td> <td class="mdname" nowrap> <em>type</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 player type for the player with role number 'atIndex' in this formation. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>type</em> </td><td>new player type for role at position 'atIndex' </td></tr><tr><td valign=top><em>atIndex</em> </td><td>role number for which player type 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#l00387">387</a> of file <a class="el" href="Formations_8C-source.html">Formations.C</a>.<p>References <a class="el" href="SoccerTypes_8h-source.html#l00316">PlayerT</a>, and <a class="el" href="Formations_8h-source.html#l00134">playerType</a>.<p>Referenced by <a class="el" href="Formations_8C-source.html#l00534">Formations::readFormations</a>(). </td> </tr></table><a name="a10" doxytag="FormationTypeInfo::setPlayerTypeInfo"></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::setPlayerTypeInfo </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classPlayerTypeInfo.html">PlayerTypeInfo</a> </td> <td class="mdname" nowrap> <em>info</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 information for a player type in this formation. Note that information is for a player TYPE and not for a player ROLE. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>info</em> </td><td>new player type information for the player type at 'atIndex'. </td></tr><tr><td valign=top><em>atIndex</em> </td><td>number of player type for which information 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#l00406">406</a> of file <a class="el" href="Formations_8C-source.html">Formations.C</a>.<p>References <a class="el" href="Formations_8h-source.html#l00135">playerTypeInfo</a>. </td> </tr></table><a name="a4" doxytag="FormationTypeInfo::setPosHome"></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::setPosHome </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classVecPosition.html">VecPosition</a> </td> <td class="mdname" nowrap> <em>pos</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 home position of the role indicated by the number 'atIndex' in this formation. The home position is the position from which the strategic position is calculated and could be interpreted as the position a player is located when the ball is at the position (0,0). <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>pos</em> </td><td>new home position for the player with role number 'atIndex' </td></tr><tr><td valign=top><em>atIndex</em> </td><td>index of the player with role for which the home position 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#l00344">344</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>. </td> </tr></table><a name="a5" doxytag="FormationTypeInfo::setXPosHome"></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::setXPosHome </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">double </td> <td class="mdname" nowrap> <em>x</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>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?