classsoccercommand.html

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

HTML
1,201
字号
</table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This method creates a SoccerCommand for the command type CMD_CHANGEVIEW. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>com</em>&nbsp;</td><td>command type specifying the kind of command </td></tr><tr><td valign=top><em>v</em>&nbsp;</td><td>view angle for the change view command </td></tr><tr><td valign=top><em>q</em>&nbsp;</td><td>view quality for the change view command </td></tr></table></dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00518">518</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="namespace_3globalScope_4.html#a247a184">CMD_CHANGEVIEW</a>, <a class="el" href="SoccerTypes_8h-source.html#l00295">CommandT</a>, <a class="el" href="SoccerTypes_8h-source.html#l00489">commandType</a>, <a class="el" href="SoccerTypes_8h-source.html#l00493">va</a>, <a class="el" href="SoccerTypes_8h-source.html#l00271">ViewAngleT</a>, <a class="el" href="SoccerTypes_8h-source.html#l00280">ViewQualityT</a>, and <a class="el" href="SoccerTypes_8h-source.html#l00492">vq</a>.    </td>  </tr></table><a name="a2" 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">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="SoccerTypes_8h.html#a247">CommandT</a>&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>com</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>double&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>d1</em> = <a class="el" href="SoccerTypes_8h.html#a19">UnknownDoubleValue</a>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>double&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>d2</em> = <a class="el" href="SoccerTypes_8h.html#a19">UnknownDoubleValue</a>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>double&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>d3</em> = <a class="el" href="SoccerTypes_8h.html#a19">UnknownDoubleValue</a></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This method create a SoccerCommand from the specified command type and the parameters. The parameters have a different meaning depending on the given command type. Not all command types are listed, since the other command types need different parameters. So see the other overloaded methods for that.<ul><li>CMD_DASH: d1 = power for dashing<li>CMD_TURN: d1 = angle body is turned<li>CMD_TURNNECK d1 = angle neck is turned<li>CMD_KICK d1 = power for kick command, d2 = angle for kick<li>CMD_MOVE d1 = x position, d2 = y position, d3 = body_angle<li>CMD_CATCH d1 = catch angle<li>CMD_CHANGEPLAYER d1 = player number, d2 = nr of new player type </ul><dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>com</em>&nbsp;</td><td>command type specifying the kind of command </td></tr><tr><td valign=top><em>d1</em>&nbsp;</td><td>meaning depends on the specified command type (see above) </td></tr><tr><td valign=top><em>d2</em>&nbsp;</td><td>meaning depends on the specified command type (see above) </td></tr><tr><td valign=top><em>d3</em>&nbsp;</td><td>meaning depends on the specified command type (see above) </td></tr></table></dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00483">483</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="namespace_3globalScope_4.html#a247a185">CMD_CATCH</a>, <a class="el" href="namespace_3globalScope_4.html#a247a190">CMD_CHANGEPLAYER</a>, <a class="el" href="namespace_3globalScope_4.html#a247a181">CMD_DASH</a>, <a class="el" href="namespace_3globalScope_4.html#a247a186">CMD_KICK</a>, <a class="el" href="namespace_3globalScope_4.html#a247a187">CMD_MOVE</a>, <a class="el" href="namespace_3globalScope_4.html#a247a182">CMD_TURN</a>, <a class="el" href="namespace_3globalScope_4.html#a247a183">CMD_TURNNECK</a>, <a class="el" href="SoccerTypes_8h-source.html#l00295">CommandT</a>, <a class="el" href="SoccerTypes_8h-source.html#l00489">commandType</a>, <a class="el" href="SoccerTypes_8h-source.html#l00490">dAngle</a>, <a class="el" href="SoccerTypes_8h-source.html#l00491">dPower</a>, <a class="el" href="SoccerTypes_8h-source.html#l00494">dX</a>, <a class="el" href="SoccerTypes_8h-source.html#l00495">dY</a>, and <a class="el" href="SoccerTypes_8h-source.html#l00088">UnknownDoubleValue</a>.<p>Referenced by <a class="el" href="Player_8C-source.html#l00278">Player::deMeer5_goalie</a>(), <a class="el" href="Player_8C-source.html#l00512">Player::executeStringCommand</a>(), and <a class="el" href="SoccerTypes_8C-source.html#l00442">SoccerCommand</a>().    </td>  </tr></table><a name="c2" doxytag="SoccerCommand::makeDashCommand"></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::makeDashCommand </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">char *&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>str</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [private]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This method makes a dash command from a SoccerCommand and puts the result in str. Resulting string looks like: (dash dPower). 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>&nbsp;</td><td>SoccerCommand that is a dash command </td></tr><tr><td valign=top><em>str</em>&nbsp;</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#l00678">678</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="SoccerTypes_8h-source.html#l00491">dPower</a>, <a class="el" href="ServerSettings_8C-source.html#l01302">ServerSettings::getMaxPower</a>(), <a class="el" href="ServerSettings_8C-source.html#l01318">ServerSettings::getMinPower</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="c3" doxytag="SoccerCommand::makeKickCommand"></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::makeKickCommand </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">char *&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>str</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [private]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This method makes a kick command from a SoccerCommand and puts the result in str. Resulting string looks like: (kick dPower 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>&nbsp;</td><td>SoccerCommand that is a kick command </td></tr><tr><td valign=top><em>str</em>&nbsp;</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#l00699">699</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="SoccerTypes_8h-source.html#l00491">dPower</a>, <a class="el" href="ServerSettings_8C-source.html#l01334">ServerSettings::getMaxMoment</a>(), <a class="el" href="ServerSettings_8C-source.html#l01302">ServerSettings::getMaxPower</a>(), <a class="el" href="ServerSettings_8C-source.html#l01350">ServerSettings::getMinMoment</a>(), <a class="el" href="ServerSettings_8C-source.html#l01318">ServerSettings::getMinPower</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="c4" doxytag="SoccerCommand::makeMoveCommand"></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::makeMoveCommand </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">char *&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>str</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [private]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This method makes a move command from a SoccerCommand and puts the result in str. Resulting string looks like: (move dX dY). 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>&nbsp;</td><td>SoccerCommand that is a move command </td></tr><tr><td valign=top><em>str</em>&nbsp;</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#l00719">719</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#l00075">PITCH_LENGTH</a>, <a class="el" href="SoccerTypes_8h-source.html#l00077">PITCH_MARGIN</a>, <a class="el" href="SoccerTypes_8h-source.html#l00076">PITCH_WIDTH</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="c5" doxytag="SoccerCommand::makeSayCommand"></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::makeSayCommand </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">char *&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>str_com</em>          </td>

⌨️ 快捷键说明

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