⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classsoccertypes.html

📁 仿真人工智能是指用人工的方法和技术
💻 HTML
📖 第 1 页 / 共 5 页
字号:
Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>s</em>&nbsp;</td><td>own side </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>object of the goal opponent, OBJECT_ILLEGAL when s is SIDE_ILLEGAL </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l01288">1288</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="namespace_3globalScope_4.html#a240a25">OBJECT_GOAL_L</a>, <a class="el" href="namespace_3globalScope_4.html#a240a26">OBJECT_GOAL_R</a>, <a class="el" href="namespace_3globalScope_4.html#a240a113">OBJECT_ILLEGAL</a>, <a class="el" href="SoccerTypes_8h-source.html#l00102">ObjectT</a>, <a class="el" href="namespace_3globalScope_4.html#a246a177">SIDE_LEFT</a>, <a class="el" href="namespace_3globalScope_4.html#a246a178">SIDE_RIGHT</a>, and <a class="el" href="SoccerTypes_8h-source.html#l00287">SideT</a>.<p>Referenced by <a class="el" href="WorldModel_8C-source.html#l00928">WorldModel::getPosOpponentGoal</a>().    </td>  </tr></table><a name="d26" doxytag="SoccerTypes::getHalfViewAngleValue"></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> SoccerTypes::getHalfViewAngleValue </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="SoccerTypes_8h.html#a244">ViewAngleT</a>&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>va</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [static]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This method returns the half angle value that belongs to the ViewAngle that is given as the first argument (VA_NARROW, VA_NORMAL or VA_WIDE). The half view angle is returned since this makes it easier to check whether an object lies in the view cone (the global relative angle must be smaller than the half view angle. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>va</em>&nbsp;</td><td>view angle </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>angle denoting the half of the corresponding view angle </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l01679">1679</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="Geometry_8h-source.html#l00052">AngDeg</a>, <a class="el" href="namespace_3globalScope_4.html#a244a173">VA_ILLEGAL</a>, <a class="el" href="namespace_3globalScope_4.html#a244a170">VA_NARROW</a>, <a class="el" href="namespace_3globalScope_4.html#a244a171">VA_NORMAL</a>, <a class="el" href="namespace_3globalScope_4.html#a244a172">VA_WIDE</a>, and <a class="el" href="SoccerTypes_8h-source.html#l00271">ViewAngleT</a>.<p>Referenced by <a class="el" href="WorldModelUpdate_8C-source.html#l01850">WorldModel::removeGhosts</a>(), and <a class="el" href="BasicPlayer_8C-source.html#l00169">BasicPlayer::searchBall</a>().    </td>  </tr></table><a name="d14" doxytag="SoccerTypes::getIndex"></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"> int SoccerTypes::getIndex </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="SoccerTypes_8h.html#a240">ObjectT</a>&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>o</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [static]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This method returns the index of an object relative to the first object in that set. The index is always 1 smaller than its number, so OBJECT_OPPONENT_1 will become 0. This can be used for indexing an array of objects. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>o</em>&nbsp;</td><td>ObjectT type of object of which the index has to be calculated </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>index of object or -1 when o was not a correct object </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l01139">1139</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="namespace_3globalScope_4.html#a240a84">OBJECT_FLAG_C</a>, <a class="el" href="namespace_3globalScope_4.html#a240a32">OBJECT_FLAG_L_T</a>, <a class="el" href="namespace_3globalScope_4.html#a240a25">OBJECT_GOAL_L</a>, <a class="el" href="namespace_3globalScope_4.html#a240a26">OBJECT_GOAL_R</a>, <a class="el" href="namespace_3globalScope_4.html#a240a28">OBJECT_LINE_L</a>, <a class="el" href="namespace_3globalScope_4.html#a240a31">OBJECT_LINE_T</a>, <a class="el" href="namespace_3globalScope_4.html#a240a97">OBJECT_OPPONENT_1</a>, <a class="el" href="namespace_3globalScope_4.html#a240a107">OBJECT_OPPONENT_11</a>, <a class="el" href="namespace_3globalScope_4.html#a240a85">OBJECT_TEAMMATE_1</a>, <a class="el" href="namespace_3globalScope_4.html#a240a95">OBJECT_TEAMMATE_11</a>, and <a class="el" href="SoccerTypes_8h-source.html#l00102">ObjectT</a>.<p>Referenced by <a class="el" href="WorldModel_8C-source.html#l00110">WorldModel::getObjectPtrFromType</a>(), <a class="el" href="SoccerTypes_8C-source.html#l00859">getObjectStr</a>(), <a class="el" href="WorldModel_8C-source.html#l01279">WorldModel::logObjectInformation</a>(), <a class="el" href="WorldModelUpdate_8C-source.html#l01702">WorldModel::mapUnknownPlayers</a>(), <a class="el" href="BasicPlayer_8C-source.html#l01271">BasicPlayer::outplayOpponent</a>(), and <a class="el" href="WorldModelUpdate_8C-source.html#l00138">WorldModel::processNewObjectInfo</a>().    </td>  </tr></table><a name="d1" doxytag="SoccerTypes::getObjectFromStr"></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="SoccerTypes_8h.html#a240">ObjectT</a> SoccerTypes::getObjectFromStr </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">char **&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>str</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>bool *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>isGoalie</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const char *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>strMyTeamName</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [static]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This method returns an ObjectT that corresponds to the string passed as the first argument. The string representation equals the representation used in the Soccer Server. Format is with parenthesis, so possible arguments for str are (ball), (p Team_L 1), etc. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>str</em>&nbsp;</td><td>pointer to string containing string representation of object </td></tr><tr><td valign=top><em>isGoalie</em>&nbsp;</td><td>bool representing the fact whether object is a goalie </td></tr><tr><td valign=top><em>strMyTeamName</em>&nbsp;</td><td>in case of player or opponent object, own teamname has to be matched, when it matches it is teammate otherwise opponent </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>return the corresponding ObjectT, OBJECT_ILLEGAL in case of error </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00885">885</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="SoccerTypes_8C-source.html#l00859">getObjectStr</a>(), <a class="el" href="Parse_8C-source.html#l00087">Parse::gotoFirstOccurenceOf</a>(), <a class="el" href="Parse_8C-source.html#l00074">Parse::gotoFirstSpaceOrClosingBracket</a>(), <a class="el" href="SoccerTypes_8C-source.html#l01258">isGoalie</a>(), <a class="el" href="namespace_3globalScope_4.html#a240a24">OBJECT_BALL</a>, <a class="el" href="namespace_3globalScope_4.html#a240a62">OBJECT_FLAG_B_0</a>, <a class="el" href="namespace_3globalScope_4.html#a240a63">OBJECT_FLAG_B_L_10</a>, <a class="el" href="namespace_3globalScope_4.html#a240a64">OBJECT_FLAG_B_L_20</a>, <a class="el" href="namespace_3globalScope_4.html#a240a65">OBJECT_FLAG_B_L_30</a>, <a class="el" href="namespace_3globalScope_4.html#a240a66">OBJECT_FLAG_B_L_40</a>, <a class="el" href="namespace_3globalScope_4.html#a240a67">OBJECT_FLAG_B_L_50</a>, <a class="el" href="namespace_3globalScope_4.html#a240a60">OBJECT_FLAG_B_R_10</a>, <a class="el" href="namespace_3globalScope_4.html#a240a59">OBJECT_FLAG_B_R_20</a>, <a class="el" href="namespace_3globalScope_4.html#a240a58">OBJECT_FLAG_B_R_30</a>, <a class="el" href="namespace_3globalScope_4.html#a240a57">OBJECT_FLAG_B_R_40</a>, <a class="el" href="namespace_3globalScope_4.html#a240a56">OBJECT_FLAG_B_R_50</a>, <a class="el" href="namespace_3globalScope_4.html#a240a84">OBJECT_FLAG_C</a>, <a class="el" href="namespace_3globalScope_4.html#a240a61">OBJECT_FLAG_C_B</a>, <a class="el" href="namespace_3globalScope_4.html#a240a39">OBJECT_FLAG_C_T</a>, <a class="el" href="namespace_3globalScope_4.html#a240a72">OBJECT_FLAG_G_L_B</a>, <a class="el" href="namespace_3globalScope_4.html#a240a74">OBJECT_FLAG_G_L_T</a>, <a class="el" href="namespace_3globalScope_4.html#a240a51">OBJECT_FLAG_G_R_B</a>, <a class="el" href="namespace_3globalScope_4.html#a240a49">OBJECT_FLAG_G_R_T</a>, <a class="el" href="namespace_3globalScope_4.html#a240a73">OBJECT_FLAG_L_0</a>, <a class="el" href="namespace_3globalScope_4.html#a240a68">OBJECT_FLAG_L_B</a>, <a class="el" href="namespace_3globalScope_4.html#a240a71">OBJECT_FLAG_L_B_10</a>, <a class="el" href="namespace_3globalScope_4.html#a240a70">OBJECT_FLAG_L_B_20</a>, <a class="el" href="namespace_3globalScope_4.html#a240a69">OBJECT_FLAG_L_B_30</a>, <a class="el" href="namespace_3globalScope_4.html#a240a32">OBJECT_FLAG_L_T</a>, <a class="el" href="namespace_3globalScope_4.html#a240a75">OBJECT_FLAG_L_T_10</a>, <a class="el" href="namespace_3globalScope_4.html#a240a76">OBJECT_FLAG_L_T_20</a>, <a class="el" href="namespace_3globalScope_4.html#a240a77">OBJECT_FLAG_L_T_30</a>, <a class="el" href="namespace_3globalScope_4.html#a240a80">OBJECT_FLAG_P_L_B</a>, <a class="el" href="namespace_3globalScope_4.html#a240a79">OBJECT_FLAG_P_L_C</a>, <a class="el" href="namespace_3globalScope_4.html#a240a78">OBJECT_FLAG_P_L_T</a>, <a class="el" href="namespace_3globalScope_4.html#a240a83">OBJECT_FLAG_P_R_B</a>, <a class="el" href="namespace_3globalScope_4.html#a240a82">OBJECT_FLAG_P_R_C</a>, <a class="el" href="namespace_3globalScope_4.html#a240a81">OBJECT_FLAG_P_R_T</a>, <a class="el" href="namespace_3globalScope_4.html#a240a50">OBJECT_FLAG_R_0</a>, <a class="el" href="namespace_3globalScope_4.html#a240a55">OBJECT_FLAG_R_B</a>, <a class="el" href="namespace_3globalScope_4.html#a240a52">OBJECT_FLAG_R_B_10</a>, <a class="el" href="namespace_3globalScope_4.html#a240a53">OBJECT_FLAG_R_B_20</a>, <a class="el" href="namespace_3globalScope_4.html#a240a54">OBJECT_FLAG_R_B_30</a>, <a class="el" href="namespace_3globalScope_4.html#a240a45">OBJECT_FLAG_R_T</a>, <a class="el" href="namespace_3globalScope_4.html#a240a48">OBJECT_FLAG_R_T_10</a>, <a class="el" href="namespace_3globalScope_4.html#a240a47">OBJECT_FLAG_R_T_20</a>, <a class="el" href="namespace_3globalScope_4.html#a240a46">OBJECT_FLAG_R_T_30</a>, <a class="el" href="namespace_3globalScope_4.html#a240a38">OBJECT_FLAG_T_0</a>, <a class="el" href="namespace_3globalScope_4.html#a240a37">OBJECT_FLAG_T_L_10</a>, <a class="el" href="namespace_3globalScope_4.html#a240a36">OBJECT_FLAG_T_L_20</a>, <a class="el" href="namespace_3globalScope_4.html#a240a35">OBJECT_FLAG_T_L_30</a>, <a class="el" href="namespace_3globalScope_4.html#a240a34">OBJECT_FLAG_T_L_40</a>, <a class="el" href="namespace_3globalScope_4.html#a240a33">OBJECT_FLAG_T_L_50</a>, <a class="el" href="namespace_3globalScope_4.html#a240a40">OBJECT_FLAG_T_R_10</a>, <a class="el" href="namespace_3globalScope_4.html#a240a41">OBJECT_FLAG_T_R_20</a>, <a class="el" href="namespace_3globalScope_4.html#a240a42">OBJECT_FLAG_T_R_30</a>, <a class="el" href="namespace_3globalScope_4.html#a240a43">OBJECT_FLAG_T_R_40</a>, <a class="el" href="namespace_3globalScope_4.html#a240a44">OBJECT_FLAG_T_R_50</a>, <a class="el" href="namespace_3globalScope_4.html#a240a25">OBJECT_GOAL_L</a>, <a class="el" href="namespace_3globalScope_4.html#a240a26">OBJECT_GOAL_R</a>, <a class="el" href="namespace_3globalScope_4.html#a240a27">OBJECT_GOAL_UNKNOWN</a>, <a class="el" href="namespace_3globalScope_4.html#a240a113">OBJECT_ILLEGAL</a>, <a class="el" href="namespace_3globalScope_4.html#a240a30">OBJECT_LINE_B</a>, <a class="el" href="namespace_3globalScope_4.html#a240a28">OBJECT_LINE_L</a>, <a class="el" href="namespace_3globalScope_4.html#a240a29">OBJECT_LINE_R</a>, <a class="el" href="namespace_3globalScope_4.html#a240a31">OBJECT_LINE_T</a>, <a class="el" href="namespace_3globalScope_4.html#a240a97">OBJECT_OPPONENT_1</a>, <a class="el" href="namespace_3globalScope_4.html#a240a106">OBJECT_OPPONENT_10</a>, <a class="el" href="namespace_3globalScope_4.html#a240a107">OBJECT_OPPONENT_11</a>, <a class="el" href="namespace_3globalScope_4.html#a240a98">OBJECT_OPPONENT_2</a>, <a class="el" href="namespace_3globalScope_4.html#a240a99">OBJECT_OPPONENT_3</a>, <a class="el" href="namespace_3globalScope_4.html#a240a100">OBJECT_OPPONENT_4</a>, <a class="el" href="namespace_3globalScope_4.html#a240a101">OBJECT_OPPONENT_5</a>, <a class="el" href="namespace_3globalScope_4.html#a240a102">OBJECT_OPPONENT_6</a>, <a class="el" href="namespace_3globalScope_4.html#a240a103">OBJECT_OPPONENT_7</a>, <a class="el" href="namespace_3globalScope_4.html#a240a104">OBJECT_OPPONENT_8</a>, <a class="el" href="namespace_3globalScope_4.html#a240a105">OBJECT_OPPONENT_9</a>, <a class="el" href="namespace_3globalScope_4.html#a240a108">OBJECT_OPPONENT_UNKNOWN</a>, <a class="el" href="namespace_3globalScope_4.html#a240a109">OBJECT_PLAYER_UNKNOWN</a>, <a class="el" href="namespace_3globalScope_4.html#a240a85">OBJECT_TEAMMATE_1</a>, <a class="el" href="namespace_3globalScope_4.html#a240a94">OBJECT_TEAMMATE_10</a>, <a class="el" href="namespace_3globalScope_4.html#a240a95">OBJECT_TEAMMATE_11</a>, <a class="el" href="namespace_3globalScope_4.html#a240a86">OBJECT_TEAMMATE_2</a>, <a class="el" href="namespace_3globalScope_4.html#a240a87">OBJECT_TEAMMATE_3</a>, <a class="el" href="namespace_3globalScope_4.html#a240a88">OBJECT_TEAMMATE_4</a>, <a class="el" href="namespace_3globalScope_4.html#a240a89">OBJECT_TEAMMATE_5</a>, <a class="el" href="namespace_3globalScope_4.html#a240a90">OBJECT_TEAMMATE_6</a>, <a class="el" href="namespace_3globalScope_4.html#a240a91">OBJECT_TEAMMATE_7</a>, <a class="el" href="namespace_3globalScope_4.html#a240a92">OBJECT_TEAMMATE_8</a>, <a class="el" href="namespace_3globalScope_4.html#a240a93">OBJECT_TEAMMATE_9</a>, <a class="el" href="namespace_3globalScope_4.html#a240a96">OBJECT_TEAMMATE_UNKNOWN</a>, <a class="el" href="namespace_3globalScope_4.html#a240a110">OBJECT_UNKNOWN</a>, <a class="el" href="SoccerTypes_8h-source.html#l00102">ObjectT</a>, and <a class="el" href="Parse_8C-source.html#l00107">Parse::parseFirstInt</a>().<p>

⌨️ 快捷键说明

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