classplayerobject.html

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

HTML
1,080
字号
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>b</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 whether this dynamic object is a known player or not. A known player is a player of which we know the number. If we don't know the player number of a player, the player is put at the index of a player that isn't seen in a while and the isKnownPlayer attribute is set to false. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>b</em>&nbsp;</td><td>bool indicating whether player number is known </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether value was set. </dl><p>Definition at line <a class="el" href="Objects_8C-source.html#l00564">564</a> of file <a class="el" href="Objects_8C-source.html">Objects.C</a>.<p>References <a class="el" href="Objects_8h-source.html#l00183">isKnownPlayer</a>.<p>Referenced by <a class="el" href="WorldModelUpdate_8C-source.html#l00232">WorldModel::processPerfectHearInfo</a>(), <a class="el" href="WorldModelUpdate_8C-source.html#l00063">WorldModel::processSeeGlobalInfo</a>(), and <a class="el" href="WorldModel_8C-source.html#l00920">WorldModel::setIsKnownPlayer</a>().    </td>  </tr></table><a name="a7" doxytag="PlayerObject::setRelativeBodyAngle"></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 PlayerObject::setRelativeBodyAngle </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="Geometry_8h.html#a2">AngDeg</a>&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>ang</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap><a class="el" href="classTime.html">Time</a>&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>time</em></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 sets the facing direction of the body and the time of this information (all relative to the agent). <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>ang</em>&nbsp;</td><td>new relative facing direction of body </td></tr><tr><td valign=top><em>time</em>&nbsp;</td><td>time corresponding to the facing direction </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether the values were set </dl><p>Definition at line <a class="el" href="Objects_8C-source.html#l00449">449</a> of file <a class="el" href="Objects_8C-source.html">Objects.C</a>.<p>References <a class="el" href="Geometry_8h-source.html#l00052">AngDeg</a>, <a class="el" href="Objects_8h-source.html#l00190">angRelativeBodyAngle</a>, and <a class="el" href="Objects_8C-source.html#l00527">setTimeRelativeAngles</a>().    </td>  </tr></table><a name="a11" doxytag="PlayerObject::setRelativeNeckAngle"></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 PlayerObject::setRelativeNeckAngle </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="Geometry_8h.html#a2">AngDeg</a>&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>ang</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap><a class="el" href="classTime.html">Time</a>&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>time</em></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 returns the facing direction of the neck and the time of this information (all relative to the agent). <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>ang</em>&nbsp;</td><td>new relative facing direction of neck </td></tr><tr><td valign=top><em>time</em>&nbsp;</td><td>time facing direction was received </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether the values were set </dl><p>Definition at line <a class="el" href="Objects_8C-source.html#l00489">489</a> of file <a class="el" href="Objects_8C-source.html">Objects.C</a>.<p>References <a class="el" href="Geometry_8h-source.html#l00052">AngDeg</a>, <a class="el" href="Objects_8h-source.html#l00191">angRelativeNeckAngle</a>, and <a class="el" href="Objects_8C-source.html#l00527">setTimeRelativeAngles</a>().    </td>  </tr></table><a name="a17" doxytag="PlayerObject::setTimeGlobalAngles"></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 PlayerObject::setTimeGlobalAngles </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classTime.html">Time</a>&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>time</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 time the facing direction was calculated. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>time</em>&nbsp;</td><td>time the facing direction was received </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether the values were set </dl><p>Definition at line <a class="el" href="Objects_8C-source.html#l00544">544</a> of file <a class="el" href="Objects_8C-source.html">Objects.C</a>.<p>References <a class="el" href="Objects_8h-source.html#l00187">timeGlobalAngles</a>.<p>Referenced by <a class="el" href="Objects_8C-source.html#l00469">setGlobalBodyAngle</a>(), and <a class="el" href="Objects_8C-source.html#l00509">setGlobalNeckAngle</a>().    </td>  </tr></table><a name="a15" doxytag="PlayerObject::setTimeRelativeAngles"></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 PlayerObject::setTimeRelativeAngles </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classTime.html">Time</a>&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>time</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 time the facing direction was calculated. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>time</em>&nbsp;</td><td>time the facing direction was received </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether the values were set </dl><p>Definition at line <a class="el" href="Objects_8C-source.html#l00527">527</a> of file <a class="el" href="Objects_8C-source.html">Objects.C</a>.<p>References <a class="el" href="Objects_8h-source.html#l00192">timeRelativeAngles</a>.<p>Referenced by <a class="el" href="Objects_8C-source.html#l00449">setRelativeBodyAngle</a>(), and <a class="el" href="Objects_8C-source.html#l00489">setRelativeNeckAngle</a>().    </td>  </tr></table><a name="a2" doxytag="PlayerObject::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 PlayerObject::show </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const char *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>strTeamName</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>ostream &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>os</em> = cout</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 prints the information about this PlayerObject to the specified output stream. The variables are printed with the specified team name. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>strTeamName</em>&nbsp;</td><td>team name of this player object </td></tr><tr><td valign=top><em>os</em>&nbsp;</td><td>output stream to which output is written </td></tr></table></dl><p>Reimplemented in <a class="el" href="classAgentObject.html#a2">AgentObject</a>.

⌨️ 快捷键说明

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