classplayerobject.html
来自「仿真人工智能是指用人工的方法和技术」· HTML 代码 · 共 1,080 行 · 第 1/4 页
HTML
1,080 行
</tr></table><a name="a12" doxytag="PlayerObject::getRelativeNeckAngle"></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="Geometry_8h.html#a2">AngDeg</a> PlayerObject::getRelativeNeckAngle </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method returns the relative neck angle of this object. This information is from the time that is returned by <a class="el" href="classPlayerObject.html#a16">getTimeRelativeAngles</a>(). <dl compact><dt><b>Returns: </b><dd>relative neck angle of this object </dl><p>Definition at line <a class="el" href="Objects_8C-source.html#l00499">499</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>.<p>Referenced by <a class="el" href="WorldModelUpdate_8C-source.html#l00579">WorldModel::updateDynamicObjectAfterSee</a>(). </td> </tr></table><a name="a18" doxytag="PlayerObject::getTimeGlobalAngles"></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="classTime.html">Time</a> PlayerObject::getTimeGlobalAngles </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method returns the server time in which the global body and neck angle of this object were calculated. <dl compact><dt><b>Returns: </b><dd>time of the global neck and body information </dl><p>Definition at line <a class="el" href="Objects_8C-source.html#l00553">553</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="WorldModel_8C-source.html#l00752">WorldModel::getTimeGlobalAngles</a>(). </td> </tr></table><a name="a16" doxytag="PlayerObject::getTimeRelativeAngles"></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="classTime.html">Time</a> PlayerObject::getTimeRelativeAngles </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method returns the server time in which the relative body and neck angle of this object were calculated. <dl compact><dt><b>Returns: </b><dd>time of the relative neck and body information </dl><p>Definition at line <a class="el" href="Objects_8C-source.html#l00536">536</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="WorldModelUpdate_8C-source.html#l00579">WorldModel::updateDynamicObjectAfterSee</a>(). </td> </tr></table><a name="a9" doxytag="PlayerObject::setGlobalBodyAngle"></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::setGlobalBodyAngle </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="Geometry_8h.html#a2">AngDeg</a> </td> <td class="mdname" nowrap> <em>ang</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classTime.html">Time</a> </td> <td class="mdname" nowrap> <em>time</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 facing direction of the body and the time of this information (all global). <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>ang</em> </td><td>new global facing direction of body </td></tr><tr><td valign=top><em>time</em> </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#l00469">469</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#l00185">angGlobalBodyAngle</a>, and <a class="el" href="Objects_8C-source.html#l00544">setTimeGlobalAngles</a>().<p>Referenced by <a class="el" href="WorldModelUpdate_8C-source.html#l00063">WorldModel::processSeeGlobalInfo</a>(), and <a class="el" href="WorldModelUpdate_8C-source.html#l00579">WorldModel::updateDynamicObjectAfterSee</a>(). </td> </tr></table><a name="a13" doxytag="PlayerObject::setGlobalNeckAngle"></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::setGlobalNeckAngle </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="Geometry_8h.html#a2">AngDeg</a> </td> <td class="mdname" nowrap> <em>ang</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classTime.html">Time</a> </td> <td class="mdname" nowrap> <em>time</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 returns the facing direction of the neck and the time of this information (all global). <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>ang</em> </td><td>new global facing direction of neck </td></tr><tr><td valign=top><em>iTime</em> </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#l00509">509</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#l00186">angGlobalNeckAngle</a>, and <a class="el" href="Objects_8C-source.html#l00544">setTimeGlobalAngles</a>().<p>Referenced by <a class="el" href="WorldModelUpdate_8C-source.html#l00063">WorldModel::processSeeGlobalInfo</a>(), and <a class="el" href="WorldModelUpdate_8C-source.html#l00579">WorldModel::updateDynamicObjectAfterSee</a>(). </td> </tr></table><a name="a5" doxytag="PlayerObject::setIsGoalie"></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::setIsGoalie </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">bool </td> <td class="mdname1" valign="top" nowrap> <em>b</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 whether this dynamic object is a goalie or not. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>b</em> </td><td>bool indicating whether this dynamic object is a goalie </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#l00583">583</a> of file <a class="el" href="Objects_8C-source.html">Objects.C</a>.<p>References <a class="el" href="Objects_8h-source.html#l00184">isGoalie</a>.<p>Referenced by <a class="el" href="WorldModelUpdate_8C-source.html#l00232">WorldModel::processPerfectHearInfo</a>(). </td> </tr></table><a name="a3" doxytag="PlayerObject::setIsKnownPlayer"></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::setIsKnownPlayer </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">bool </td>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?