classbasicplayer.html
来自「仿真人工智能是指用人工的方法和技术」· HTML 代码 · 共 758 行 · 第 1/5 页
HTML
758 行
<p>References <a class="el" href="Geometry_8h-source.html#l00052">AngDeg</a>, <a class="el" href="WorldModel_8C-source.html#l00533">WorldModel::getAgentGlobalBodyAngle</a>(), <a class="el" href="WorldModel_8C-source.html#l00526">WorldModel::getAgentGlobalNeckAngle</a>(), <a class="el" href="WorldModel_8C-source.html#l00568">WorldModel::getAgentGlobalPosition</a>(), <a class="el" href="WorldModel_8C-source.html#l00554">WorldModel::getAgentGlobalVelocity</a>(), <a class="el" href="WorldModel_8C-source.html#l00561">WorldModel::getAgentSpeed</a>(), <a class="el" href="WorldModel_8C-source.html#l00540">WorldModel::getAgentStamina</a>(), <a class="el" href="WorldModelHighLevel_8C-source.html#l01094">WorldModel::getAngleForTurn</a>(), <a class="el" href="ServerSettings_8C-source.html#l00902">ServerSettings::getCatchableAreaL</a>(), <a class="el" href="Geometry_8C-source.html#l00625">VecPosition::getDirection</a>(), <a class="el" href="Geometry_8C-source.html#l00589">VecPosition::getDistanceTo</a>(), <a class="el" href="Geometry_8C-source.html#l00614">VecPosition::getMagnitude</a>(), <a class="el" href="ServerSettings_8C-source.html#l02303">ServerSettings::getMaximalKickDist</a>(), <a class="el" href="ServerSettings_8C-source.html#l01302">ServerSettings::getMaxPower</a>(), <a class="el" href="ServerSettings_8C-source.html#l00558">ServerSettings::getPlayerDecay</a>(), <a class="el" href="PlayerSettings_8C-source.html#l00185">PlayerSettings::getPlayerWhenToTurnAngle</a>(), <a class="el" href="Geometry_8C-source.html#l00939">Geometry::getSumInfGeomSeries</a>(), <a class="el" href="Geometry_8C-source.html#l00875">VecPosition::normalizeAngle</a>(), <a class="el" href="namespace_3globalScope_4.html#a240a24">OBJECT_BALL</a>, <a class="el" href="WorldModelPredict_8C-source.html#l00200">WorldModel::predictPosAfterNrCycles</a>(), <a class="el" href="WorldModelPredict_8C-source.html#l00142">WorldModel::predictStateAfterDash</a>(), <a class="el" href="WorldModelPredict_8C-source.html#l00178">WorldModel::predictStateAfterTurn</a>(), <a class="el" href="BasicPlayer_8h-source.html#l00060">PS</a>, <a class="el" href="BasicPlayer_8h-source.html#l00059">SS</a>, and <a class="el" href="BasicPlayer_8h-source.html#l00058">WM</a>.<p>Referenced by <a class="el" href="Player_8C-source.html#l00278">Player::deMeer5_goalie</a>(), and <a class="el" href="BasicPlayer_8C-source.html#l01016">intercept</a>(). </td> </tr></table><a name="b32" doxytag="BasicPlayer::getMarkingPosition"></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="classVecPosition.html">VecPosition</a> BasicPlayer::getMarkingPosition </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="SoccerTypes_8h.html#a240">ObjectT</a> </td> <td class="mdname" nowrap> <em>o</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>double </td> <td class="mdname" nowrap> <em>dDist</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="SoccerTypes_8h.html#a252">MarkT</a> </td> <td class="mdname" nowrap> <em>mark</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [protected]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method returns a global position on the field which denotes the position to mark object 'o'. It receives three arguments: an object o (usually an opponent) that the agent wants to mark, a distance 'dDist' representing the desired distance between o and the marking position and a type indicator that denotes the type of marking that is required. We distinguish three types of marking:<ul><li>MARK BALL: marking the opponent by standing at a distance 'dDist' away from him on the line between him and the ball. This type of marking will make it di眂ult for the opponent to receive a pass.<li>MARK GOAL: marking the opponent by standing at a distance 'dDist' away from him on the line between him and the center point of the goal he attacks. This type of marking will make it difficult for the opponent to score a goal.<li>MARK BISECTOR: marking the opponent by standing at a distance 'dDist' away from him on the bisector of the ball-opponent-goal angle. This type of marking enables the agent to intercept both a direct and a leading pass to the opponent. </ul><dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>o</em> </td><td>object that has to be marked </td></tr><tr><td valign=top><em>dDist</em> </td><td>distance marking position is located from object position </td></tr><tr><td valign=top><em>mark</em> </td><td>marking technique that should be used </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>position that is the marking position. </dl><p>Definition at line <a class="el" href="BasicPlayer_8C-source.html#l01762">1762</a> of file <a class="el" href="BasicPlayer_8C-source.html">BasicPlayer.C</a>.<p>References <a class="el" href="Geometry_8h-source.html#l00052">AngDeg</a>, <a class="el" href="Geometry_8C-source.html#l00206">getBisectorTwoAngles</a>(), <a class="el" href="WorldModel_8C-source.html#l00658">WorldModel::getGlobalPosition</a>(), <a class="el" href="WorldModel_8C-source.html#l00938">WorldModel::getPosOwnGoal</a>(), <a class="el" href="namespace_3globalScope_4.html#a252a228">MARK_BALL</a>, <a class="el" href="namespace_3globalScope_4.html#a252a227">MARK_BISECTOR</a>, <a class="el" href="namespace_3globalScope_4.html#a252a226">MARK_GOAL</a>, <a class="el" href="SoccerTypes_8h-source.html#l00367">MarkT</a>, <a class="el" href="namespace_3globalScope_4.html#a240a24">OBJECT_BALL</a>, <a class="el" href="SoccerTypes_8h-source.html#l00102">ObjectT</a>, <a class="el" href="WorldModelPredict_8C-source.html#l00200">WorldModel::predictPosAfterNrCycles</a>(), and <a class="el" href="BasicPlayer_8h-source.html#l00058">WM</a>.<p>Referenced by <a class="el" href="BasicPlayer_8C-source.html#l01476">markOpponent</a>(). </td> </tr></table><a name="b30" doxytag="BasicPlayer::getShootPositionOnLine"></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="classVecPosition.html">VecPosition</a> BasicPlayer::getShootPositionOnLine </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>p1</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classVecPosition.html">VecPosition</a> </td> <td class="mdname" nowrap> <em>p2</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="Geometry_8h.html#a2">AngDeg</a> * </td> <td class="mdname" nowrap> <em>angLargest</em> = NULL</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [protected]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method returns the point on a line segment with which the ball has the largest angle with the surrounding opponents. It uses the method getDirectionOfWidestAngle. The line is determined by the two position p1 and p2. The returned position lies on this line and makes the largest angle with the opponents. The actual angle between the opponents is returned by 'angLargest'. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>p1</em> </td><td>first position of line segment </td></tr><tr><td valign=top><em>p2</em> </td><td>second position of line segment </td></tr><tr><td valign=top><em>angLargest</em> </td><td>will be filled with the largest angle with the opponents </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd><a class="el" href="classVecPosition.html">VecPosition</a> position on line that has the largest angle with the opponents </dl><p>Definition at line <a class="el" href="BasicPlayer_8C-source.html#l01687">1687</a> of file <a class="el" href="BasicPlayer_8C-source.html">BasicPlayer.C</a>.<p>References <a class="el" href="Geometry_8h-source.html#l00052">AngDeg</a>, <a class="el" href="WorldModel_8C-source.html#l00620">WorldModel::getBallPos</a>(), <a class="el" href="PlayerSettings_8C-source.html#l00266">PlayerSettings::getClearBallOppMaxDist</a>(), <a class="el" href="WorldModelHighLevel_8C-source.html#l00874">WorldModel::getDirectionOfWidestAngle</a>(), <a class="el" href="Geometry_8C-source.html#l00589">VecPosition::getDistanceTo</a>(), <a class="el" href="Geometry_8C-source.html#l01278">Line::getIntersection</a>(), <a class="el" href="Geometry_8C-source.html#l01475">Line::makeLineFromPositionAndAngle</a>(), <a class="el" href="Geometry_8C-source.html#l01447">Line::makeLineFromTwoPoints</a>(), <a class="el" href="Geometry_8C-source.html#l00066">max</a>(), <a class="el" href="Geometry_8C-source.html#l00075">min</a>(), <a class="el" href="BasicPlayer_8h-source.html#l00060">PS</a>, and <a class="el" href="BasicPlayer_8h-source.html#l00058">WM</a>.<p>Referenced by <a class="el" href="BasicPlayer_8C-source.html#l01180">throughPass</a>(). </td> </tr></table><a name="b20" doxytag="BasicPlayer::intercept"></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="classSoccerCommand.html">SoccerCommand</a> BasicPlayer::intercept </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">bool </td> <td class="mdname1" valign="top" nowrap> <em>isGoalie</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [protected]</code></td> </tr> </table> </td> </tr></table>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?