classformationtypeinfo.html

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

HTML
726
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>FormationTypeInfo class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body bgcolor="#ffffff"><!-- Generated by Doxygen 1.2.12 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center><hr><h1>FormationTypeInfo  Class Reference</h1><code>#include &lt;<a class="el" href="Formations_8h-source.html">Formations.h</a>&gt;</code><p>Collaboration diagram for FormationTypeInfo:<p><center><img src="classFormationTypeInfo__coll__graph.gif" border="0" usemap="#FormationTypeInfo__coll__map" alt="Collaboration graph"></center><map name="FormationTypeInfo__coll__map"><area href="classVecPosition.html" shape="rect" coords="14,14,91,33" alt=""><area href="classPlayerTypeInfo.html" shape="rect" coords="117,14,213,33" alt=""></map><center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classFormationTypeInfo-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0><tr><td colspan=2><br><h2>Public Methods</h2></td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classFormationTypeInfo.html#a0">FormationTypeInfo</a> ()</td></tr><tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classFormationTypeInfo.html#a1">show</a> (ostream &amp;os=cout)</td></tr><tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classFormationTypeInfo.html#a2">setFormationType</a> (<a class="el" href="SoccerTypes_8h.html#a249">FormationT</a> type)</td></tr><tr><td nowrap align=right valign=top><a class="el" href="SoccerTypes_8h.html#a249">FormationT</a>&nbsp;</td><td valign=bottom><a class="el" href="classFormationTypeInfo.html#a3">getFormationType</a> () const</td></tr><tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classFormationTypeInfo.html#a4">setPosHome</a> (<a class="el" href="classVecPosition.html">VecPosition</a> pos, int atIndex)</td></tr><tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classFormationTypeInfo.html#a5">setXPosHome</a> (double x, int atIndex)</td></tr><tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classFormationTypeInfo.html#a6">setYPosHome</a> (double y, int atIndex)</td></tr><tr><td nowrap align=right valign=top><a class="el" href="classVecPosition.html">VecPosition</a>&nbsp;</td><td valign=bottom><a class="el" href="classFormationTypeInfo.html#a7">getPosHome</a> (int atIndex) const</td></tr><tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classFormationTypeInfo.html#a8">setPlayerType</a> (<a class="el" href="SoccerTypes_8h.html#a248">PlayerT</a> type, int atIndex)</td></tr><tr><td nowrap align=right valign=top><a class="el" href="SoccerTypes_8h.html#a248">PlayerT</a>&nbsp;</td><td valign=bottom><a class="el" href="classFormationTypeInfo.html#a9">getPlayerType</a> (int atIndex) const</td></tr><tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classFormationTypeInfo.html#a10">setPlayerTypeInfo</a> (<a class="el" href="classPlayerTypeInfo.html">PlayerTypeInfo</a> info, int atIndex)</td></tr><tr><td nowrap align=right valign=top><a class="el" href="classPlayerTypeInfo.html">PlayerTypeInfo</a> *&nbsp;</td><td valign=bottom><a class="el" href="classFormationTypeInfo.html#a11">getPlayerTypeInfo</a> (int atIndex)</td></tr><tr><td nowrap align=right valign=top><a class="el" href="classPlayerTypeInfo.html">PlayerTypeInfo</a> *&nbsp;</td><td valign=bottom><a class="el" href="classFormationTypeInfo.html#a12">getPlayerTypeInfoOfPlayer</a> (int iPlayerInFormation)</td></tr><tr><td colspan=2><br><h2>Private Attributes</h2></td></tr><tr><td nowrap align=right valign=top><a class="el" href="SoccerTypes_8h.html#a249">FormationT</a>&nbsp;</td><td valign=bottom><a class="el" href="classFormationTypeInfo.html#o0">formationType</a></td></tr><tr><td nowrap align=right valign=top><a class="el" href="classVecPosition.html">VecPosition</a>&nbsp;</td><td valign=bottom><a class="el" href="classFormationTypeInfo.html#o1">posHome</a> [MAX_TEAMMATES]</td></tr><tr><td nowrap align=right valign=top><a class="el" href="SoccerTypes_8h.html#a248">PlayerT</a>&nbsp;</td><td valign=bottom><a class="el" href="classFormationTypeInfo.html#o2">playerType</a> [MAX_TEAMMATES]</td></tr><tr><td nowrap align=right valign=top><a class="el" href="classPlayerTypeInfo.html">PlayerTypeInfo</a>&nbsp;</td><td valign=bottom><a class="el" href="classFormationTypeInfo.html#o3">playerTypeInfo</a> [MAX_PLAYER_TYPES]</td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>This class contains information about one specific formation. It contains the formation type (defined in <a class="el" href="SoccerTypes_8h.html">SoccerTypes.h</a>), the home position of all the roles (=specific player in a formation), the player types for all the roles and the information about the different player_types. Furthermore it contains methods to retrieve this information for a specific role. <p><p>Definition at line <a class="el" href="Formations_8h-source.html#l00130">130</a> of file <a class="el" href="Formations_8h-source.html">Formations.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2><a name="a0" doxytag="FormationTypeInfo::FormationTypeInfo"></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"> FormationTypeInfo::FormationTypeInfo </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </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 is the default constructor and does nothing. <p>Definition at line <a class="el" href="Formations_8C-source.html#l00251">251</a> of file <a class="el" href="Formations_8C-source.html">Formations.C</a>.    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a name="a3" doxytag="FormationTypeInfo::getFormationType"></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#a249">FormationT</a> FormationTypeInfo::getFormationType </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This method return the current formation type for this class. <dl compact><dt><b>Returns: </b><dd>formation type for this class. </dl><p>Definition at line <a class="el" href="Formations_8C-source.html#l00266">266</a> of file <a class="el" href="Formations_8C-source.html">Formations.C</a>.<p>References <a class="el" href="SoccerTypes_8h-source.html#l00329">FormationT</a>, and <a class="el" href="Formations_8h-source.html#l00132">formationType</a>.    </td>  </tr></table><a name="a9" doxytag="FormationTypeInfo::getPlayerType"></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#a248">PlayerT</a> FormationTypeInfo::getPlayerType </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>atIndex</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This method returns the player type for the player with role number 'atIndex' in this formation. <dl compact><dt><b>Returns: </b><dd>player type for player with role number 'atIndex' </dl><p>Definition at line <a class="el" href="Formations_8C-source.html#l00396">396</a> of file <a class="el" href="Formations_8C-source.html">Formations.C</a>.<p>References <a class="el" href="SoccerTypes_8h-source.html#l00316">PlayerT</a>, and <a class="el" href="Formations_8h-source.html#l00134">playerType</a>.    </td>  </tr></table><a name="a11" doxytag="FormationTypeInfo::getPlayerTypeInfo"></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="classPlayerTypeInfo.html">PlayerTypeInfo</a> * FormationTypeInfo::getPlayerTypeInfo </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>atIndex</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 returns (a pointer to) the player type information for the player type at position 'atIndex' <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>atIndex</em>&nbsp;</td><td>index of which player type information should be returned </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>pointer to player type information located at index 'atIndex' </dl><p>Definition at line <a class="el" href="Formations_8C-source.html#l00416">416</a> of file <a class="el" href="Formations_8C-source.html">Formations.C</a>.<p>References <a class="el" href="Formations_8h-source.html#l00135">playerTypeInfo</a>.<p>Referenced by <a class="el" href="Formations_8C-source.html#l00534">Formations::readFormations</a>().    </td>  </tr></table><a name="a12" doxytag="FormationTypeInfo::getPlayerTypeInfoOfPlayer"></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="classPlayerTypeInfo.html">PlayerTypeInfo</a> * FormationTypeInfo::getPlayerTypeInfoOfPlayer </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>iPlayerInFormation</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 returns (a pointer to) the player type information for the player with role number 'iPlayerInFormation'. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>iPlayerInFormation</em>&nbsp;</td><td>role number for which info should be returned </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>pointer to information for role 'iPlayerInFormation' </dl><p>Definition at line <a class="el" href="Formations_8C-source.html#l00426">426</a> of file <a class="el" href="Formations_8C-source.html">Formations.C</a>.<p>References <a class="el" href="Formations_8h-source.html#l00134">playerType</a>, and <a class="el" href="Formations_8h-source.html#l00135">playerTypeInfo</a>.    </td>  </tr></table><a name="a7" doxytag="FormationTypeInfo::getPosHome"></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> FormationTypeInfo::getPosHome </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>atIndex</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap> const</td>        </tr>      </table>    </td>

⌨️ 快捷键说明

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