classplayertypeinfo.html
来自「仿真人工智能是指用人工的方法和技术」· HTML 代码 · 共 921 行 · 第 1/3 页
HTML
921 行
<table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> double PlayerTypeInfo::getMinX </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 minimal x coordinate for this player type. When the calculated x coordinate for the strategic position is lower than this value, the x coordinate is set to this minimal x coordinate. <dl compact><dt><b>Returns: </b><dd>minimal x coordinate for this player type </dl><p>Definition at line <a class="el" href="Formations_8C-source.html#l00197">197</a> of file <a class="el" href="Formations_8C-source.html">Formations.C</a>.<p>References <a class="el" href="Formations_8h-source.html#l00093">dMinX</a>.<p>Referenced by <a class="el" href="Formations_8C-source.html#l00488">Formations::getStrategicPosition</a>(). </td> </tr></table><a name="a5" doxytag="PlayerTypeInfo::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> PlayerTypeInfo::getPlayerType </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 player type associated with this class. <dl compact><dt><b>Returns: </b><dd>player type of this class </dl><p>Definition at line <a class="el" href="Formations_8C-source.html#l00125">125</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#l00090">playerType</a>. </td> </tr></table><a name="a6" doxytag="PlayerTypeInfo::setAttrX"></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 PlayerTypeInfo::setAttrX </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">double </td> <td class="mdname1" valign="top" nowrap> <em>dAttractionX</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 the x attraction to the ball for this player type. The x attraction to the ball is a double in the range (0,1). This value is used to determine the x coordinate of the strategic position for this player type. The x attraction of the ball is multiplied with the x coordinate of the ball and added to the home position of the agent to determine the x coordinate of the strategic position. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>dAttractionX</em> </td><td>new x attraction for this player type </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether update was succesfull </dl><p>Definition at line <a class="el" href="Formations_8C-source.html#l00138">138</a> of file <a class="el" href="Formations_8C-source.html">Formations.C</a>.<p>References <a class="el" href="Formations_8h-source.html#l00091">dAttrX</a>.<p>Referenced by <a class="el" href="Formations_8C-source.html#l00534">Formations::readFormations</a>(). </td> </tr></table><a name="a8" doxytag="PlayerTypeInfo::setAttrY"></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 PlayerTypeInfo::setAttrY </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">double </td> <td class="mdname1" valign="top" nowrap> <em>dAttractionY</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 the y attraction to the ball for this player type. The y attraction to the ball is a double in the range (0,1). This value is used to determine the y coordinate of the strategic position for this player type. The y attraction of the ball is multiplied with the y coordinate of the ball and added to the home position of the agent to determine the y coordinate of the strategic position. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>dAttractionY</em> </td><td>new y attraction for this player type </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether update was succesfull </dl><p>Definition at line <a class="el" href="Formations_8C-source.html#l00164">164</a> of file <a class="el" href="Formations_8C-source.html">Formations.C</a>.<p>References <a class="el" href="Formations_8h-source.html#l00092">dAttrY</a>.<p>Referenced by <a class="el" href="Formations_8C-source.html#l00534">Formations::readFormations</a>(). </td> </tr></table><a name="a14" doxytag="PlayerTypeInfo::setBehindBall"></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 PlayerTypeInfo::setBehindBall </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 the value that indicates whether this player type should stay behind the ball or not. When set to true and the strategic position for this player type is calculated to be in front of the ball. The x coordinate of the strategic position is set to the x coordinate of the ball. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>b</em> </td><td>boolean indicating whether this playertype should stay behind the ball </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether update was succesfull. </dl><p>Definition at line <a class="el" href="Formations_8C-source.html#l00229">229</a> of file <a class="el" href="Formations_8C-source.html">Formations.C</a>.<p>References <a class="el" href="Formations_8h-source.html#l00095">bBehindBall</a>.<p>Referenced by <a class="el" href="Formations_8C-source.html#l00534">Formations::readFormations</a>(). </td> </tr></table><a name="a12" doxytag="PlayerTypeInfo::setMaxX"></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 PlayerTypeInfo::setMaxX </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">double </td> <td class="mdname1" valign="top" nowrap> <em>dMaximalX</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 the maximal x coordinate for this player type. When the calculated x coordinate for the strategic position is larger than this value, the x coordinate is set to this maximal x coordinate. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>dMaximalX</em> </td><td>new maximal x coordinate for this player type </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether update was succesfull. </dl><p>Definition at line <a class="el" href="Formations_8C-source.html#l00207">207</a> of file <a class="el" href="Formations_8C-source.html">Formations.C</a>.<p>References <a class="el" href="Formations_8h-source.html#l00094">dMaxX</a>.<p>Referenced by <a class="el" href="Formations_8C-source.html#l00534">Formations::readFormations</a>(). </td> </tr></table><a name="a10" doxytag="PlayerTypeInfo::setMinX"></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 PlayerTypeInfo::setMinX </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">double </td> <td class="mdname1" valign="top" nowrap> <em>dMinimalX</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 the minimal x coordinate for this player type. When the calculated x coordinate for the strategic position is lower than this value, the x coordinate is set to this minimal x coordinate. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>dMinimalX</em> </td><td>new minimal x coordinate for this player type </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether update was succesfull. </dl><p>Definition at line <a class="el" href="Formations_8C-source.html#l00187">187</a> of file <a class="el" href="Formations_8C-source.html">Formations.C</a>.<p>References <a class="el" href="Formations_8h-source.html#l00093">dMinX</a>.<p>Referenced by <a class="el" href="Formations_8C-source.html#l00534">Formations::readFormations</a>(). </td> </tr></table><a name="a4" doxytag="PlayerTypeInfo::setPlayerType"></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 PlayerTypeInfo::setPlayerType </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="SoccerTypes_8h.html#a248">PlayerT</a> </td> <td class="mdname1" valign="top" nowrap> <em>type</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>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?