classsoccercommand.html
来自「仿真人工智能是指用人工的方法和技术」· HTML 代码 · 共 1,201 行 · 第 1/5 页
HTML
1,201 行
<td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method returns whether this SoccerCommand is illegal, that is the SoccerCommand hasn't been filled yet.This means that no command is performed when this command is sent to the server. <dl compact><dt><b>Returns: </b><dd>bool indicating whether the current Command is illegal </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00592">592</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="namespace_3globalScope_4.html#a247a180">CMD_ILLEGAL</a>, and <a class="el" href="SoccerTypes_8h-source.html#l00489">commandType</a>. </td> </tr></table><a name="c0" doxytag="SoccerCommand::makeCatchCommand"></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 SoccerCommand::makeCatchCommand </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">char * </td> <td class="mdname1" valign="top" nowrap> <em>str</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [private]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method makes a catch command from a SoccerCommand and puts the result in str. Resulting string looks like: (catch dAngle). Enough space should be allocated for str. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>command</em> </td><td>SoccerCommand that is a catch command </td></tr><tr><td valign=top><em>str</em> </td><td>string that will be filled with the corresponding SoccerCommand </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether string is filled or not </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00639">639</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="SoccerTypes_8h-source.html#l00490">dAngle</a>, <a class="el" href="ServerSettings_8C-source.html#l01334">ServerSettings::getMaxMoment</a>(), <a class="el" href="ServerSettings_8C-source.html#l01350">ServerSettings::getMinMoment</a>(), <a class="el" href="SoccerTypes_8h-source.html#l00469">SS</a>, and <a class="el" href="SoccerTypes_8h-source.html#l00496">str</a>.<p>Referenced by <a class="el" href="SoccerTypes_8C-source.html#l00604">getCommandString</a>(). </td> </tr></table><a name="c9" doxytag="SoccerCommand::makeChangePlayerCommand"></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 SoccerCommand::makeChangePlayerCommand </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">char * </td> <td class="mdname1" valign="top" nowrap> <em>str</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [private]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method makes a change_player_type command from a SoccerCommand and puts the result in str. Resulting string looks like: (change_player_type dX dY). Where dX stands for the teammate that should be changed and dY for the heterogenous player that it should become. Enough space should be allocated for str. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>command</em> </td><td>SoccerCommand that is a turn_neck command </td></tr><tr><td valign=top><em>str</em> </td><td>string that will be filled with the corresponding SoccerCommand </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether string is filled or not </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00816">816</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="SoccerTypes_8h-source.html#l00494">dX</a>, <a class="el" href="SoccerTypes_8h-source.html#l00495">dY</a>, <a class="el" href="SoccerTypes_8h-source.html#l00066">MAX_HETERO_PLAYERS</a>, <a class="el" href="SoccerTypes_8h-source.html#l00061">MAX_TEAMMATES</a>, and <a class="el" href="SoccerTypes_8h-source.html#l00496">str</a>.<p>Referenced by <a class="el" href="SoccerTypes_8C-source.html#l00604">getCommandString</a>(). </td> </tr></table><a name="c1" doxytag="SoccerCommand::makeChangeViewCommand"></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 SoccerCommand::makeChangeViewCommand </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">char * </td> <td class="mdname1" valign="top" nowrap> <em>str</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [private]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method makes a change view command from a SoccerCommand and puts the result in str. Resulting string looks like: (change_view va vq). Enough space should be allocated for str. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>command</em> </td><td>SoccerCommand that is a change view command </td></tr><tr><td valign=top><em>str</em> </td><td>string that will be filled with the corresponding SoccerCommand </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether string is filled or not </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00657">657</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="SoccerTypes_8C-source.html#l01646">SoccerTypes::getViewAngleStr</a>(), <a class="el" href="SoccerTypes_8C-source.html#l01696">SoccerTypes::getViewQualityStr</a>(), <a class="el" href="SoccerTypes_8h-source.html#l00496">str</a>, <a class="el" href="SoccerTypes_8h-source.html#l00493">va</a>, <a class="el" href="namespace_3globalScope_4.html#a244a173">VA_ILLEGAL</a>, <a class="el" href="SoccerTypes_8h-source.html#l00492">vq</a>, and <a class="el" href="namespace_3globalScope_4.html#a245a176">VQ_ILLEGAL</a>.<p>Referenced by <a class="el" href="SoccerTypes_8C-source.html#l00604">getCommandString</a>(). </td> </tr></table><a name="a4" doxytag="SoccerCommand::makeCommand"></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 SoccerCommand::makeCommand </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="SoccerTypes_8h.html#a247">CommandT</a> </td> <td class="mdname" nowrap> <em>com</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>char * </td> <td class="mdname" nowrap> <em>msg</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 creates a command for the command type CMD_SAY that accepts a string as parameter. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>com</em> </td><td>command type specifying the kind of command. </td></tr><tr><td valign=top><em>msg</em> </td><td>string message that is added to the say message. </td></tr></table></dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00532">532</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="namespace_3globalScope_4.html#a247a189">CMD_SAY</a>, <a class="el" href="SoccerTypes_8h-source.html#l00295">CommandT</a>, <a class="el" href="SoccerTypes_8h-source.html#l00489">commandType</a>, and <a class="el" href="SoccerTypes_8h-source.html#l00496">str</a>. </td> </tr></table><a name="a3" doxytag="SoccerCommand::makeCommand"></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 SoccerCommand::makeCommand </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="SoccerTypes_8h.html#a247">CommandT</a> </td> <td class="mdname" nowrap> <em>com</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="SoccerTypes_8h.html#a244">ViewAngleT</a> </td> <td class="mdname" nowrap> <em>v</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="SoccerTypes_8h.html#a245">ViewQualityT</a> </td> <td class="mdname" nowrap> <em>q</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?