📄 classplayertypeinfo.html
字号:
This method sets the player type associated with this class. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>type</em> </td><td>new 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#l00117">117</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="a2" doxytag="PlayerTypeInfo::setValues"></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::setValues </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="mdname" nowrap> <em>pt</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>double </td> <td class="mdname" nowrap> <em>ax</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>double </td> <td class="mdname" nowrap> <em>ay</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>double </td> <td class="mdname" nowrap> <em>minx</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>double </td> <td class="mdname" nowrap> <em>maxx</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>bool </td> <td class="mdname" nowrap> <em>bb</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 receives the values for all the member variables as arguments and sets these member variables. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>pt</em> </td><td>PlayerType corresponding to the player type of this class </td></tr><tr><td valign=top><em>ax</em> </td><td>x attraction to the ball </td></tr><tr><td valign=top><em>ay</em> </td><td>y attraction to the ball </td></tr><tr><td valign=top><em>minx</em> </td><td>minimal x coordinate for this player type </td></tr><tr><td valign=top><em>maxx</em> </td><td>maximal x coordinate for this player type </td></tr><tr><td valign=top><em>bb</em> </td><td>boolean indicating whether this player type should always stay behind the ball. </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether update was successful. </dl><p>Definition at line <a class="el" href="Formations_8C-source.html#l00090">90</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>, <a class="el" href="Formations_8h-source.html#l00091">dAttrX</a>, <a class="el" href="Formations_8h-source.html#l00092">dAttrY</a>, <a class="el" href="Formations_8h-source.html#l00094">dMaxX</a>, <a class="el" href="Formations_8h-source.html#l00093">dMinX</a>, <a class="el" href="SoccerTypes_8h-source.html#l00316">PlayerT</a>, and <a class="el" href="Formations_8h-source.html#l00090">playerType</a>.<p>Referenced by <a class="el" href="Formations_8C-source.html#l00059">PlayerTypeInfo</a>(). </td> </tr></table><a name="a3" doxytag="PlayerTypeInfo::show"></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"> void PlayerTypeInfo::show </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">ostream & </td> <td class="mdname1" valign="top" nowrap> <em>os</em> = cout </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 print the different member values separated by comma's to the specified output stream. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>os</em> </td><td>output stream to which member values are printed </td></tr></table></dl><p>Definition at line <a class="el" href="Formations_8C-source.html#l00106">106</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>, <a class="el" href="Formations_8h-source.html#l00091">dAttrX</a>, <a class="el" href="Formations_8h-source.html#l00092">dAttrY</a>, <a class="el" href="Formations_8h-source.html#l00094">dMaxX</a>, <a class="el" href="Formations_8h-source.html#l00093">dMinX</a>, and <a class="el" href="Formations_8h-source.html#l00090">playerType</a>. </td> </tr></table><hr><h2>Member Data Documentation</h2><a name="o5" doxytag="PlayerTypeInfo::bBehindBall"></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::bBehindBall<code> [private]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>should player always stay behind the ball <p>Definition at line <a class="el" href="Formations_8h-source.html#l00095">95</a> of file <a class="el" href="Formations_8h-source.html">Formations.h</a>.<p>Referenced by <a class="el" href="Formations_8C-source.html#l00241">getBehindBall</a>(), <a class="el" href="Formations_8C-source.html#l00074">PlayerTypeInfo</a>(), <a class="el" href="Formations_8C-source.html#l00229">setBehindBall</a>(), <a class="el" href="Formations_8C-source.html#l00090">setValues</a>(), and <a class="el" href="Formations_8C-source.html#l00106">show</a>(). </td> </tr></table><a name="o1" doxytag="PlayerTypeInfo::dAttrX"></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"> double PlayerTypeInfo::dAttrX<code> [private]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>x attraction to the ball <p>Definition at line <a class="el" href="Formations_8h-source.html#l00091">91</a> of file <a class="el" href="Formations_8h-source.html">Formations.h</a>.<p>Referenced by <a class="el" href="Formations_8C-source.html#l00151">getAttrX</a>(), <a class="el" href="Formations_8C-source.html#l00074">PlayerTypeInfo</a>(), <a class="el" href="Formations_8C-source.html#l00138">setAttrX</a>(), <a class="el" href="Formations_8C-source.html#l00090">setValues</a>(), and <a class="el" href="Formations_8C-source.html#l00106">show</a>(). </td> </tr></table><a name="o2" doxytag="PlayerTypeInfo::dAttrY"></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"> double PlayerTypeInfo::dAttrY<code> [private]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>y attraction to the ball <p>Definition at line <a class="el" href="Formations_8h-source.html#l00092">92</a> of file <a class="el" href="Formations_8h-source.html">Formations.h</a>.<p>Referenced by <a class="el" href="Formations_8C-source.html#l00177">getAttrY</a>(), <a class="el" href="Formations_8C-source.html#l00074">PlayerTypeInfo</a>(), <a class="el" href="Formations_8C-source.html#l00164">setAttrY</a>(), <a class="el" href="Formations_8C-source.html#l00090">setValues</a>(), and <a class="el" href="Formations_8C-source.html#l00106">show</a>(). </td> </tr></table><a name="o4" doxytag="PlayerTypeInfo::dMaxX"></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"> double PlayerTypeInfo::dMaxX<code> [private]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>maximal x coordinate for this player type <p>Definition at line <a class="el" href="Formations_8h-source.html#l00094">94</a> of file <a class="el" href="Formations_8h-source.html">Formations.h</a>.<p>Referenced by <a class="el" href="Formations_8C-source.html#l00217">getMaxX</a>(), <a class="el" href="Formations_8C-source.html#l00074">PlayerTypeInfo</a>(), <a class="el" href="Formations_8C-source.html#l00207">setMaxX</a>(), <a class="el" href="Formations_8C-source.html#l00090">setValues</a>(), and <a class="el" href="Formations_8C-source.html#l00106">show</a>(). </td> </tr></table><a name="o3" doxytag="PlayerTypeInfo::dMinX"></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"> double PlayerTypeInfo::dMinX<code> [private]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>minimal x coordinate for this player type <p>Definition at line <a class="el" href="Formations_8h-source.html#l00093">93</a> of file <a class="el" href="Formations_8h-source.html">Formations.h</a>.<p>Referenced by <a class="el" href="Formations_8C-source.html#l00197">getMinX</a>(), <a class="el" href="Formations_8C-source.html#l00074">PlayerTypeInfo</a>(), <a class="el" href="Formations_8C-source.html#l00187">setMinX</a>(), <a class="el" href="Formations_8C-source.html#l00090">setValues</a>(), and <a class="el" href="Formations_8C-source.html#l00106">show</a>(). </td> </tr></table><a name="o0" doxytag="PlayerTypeInfo::playerType"></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::playerType<code> [private]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This class gives information about this PlayerType <p>Definition at line <a class="el" href="Formations_8h-source.html#l00090">90</a> of file <a class="el" href="Formations_8h-source.html">Formations.h</a>.<p>Referenced by <a class="el" href="Formations_8C-source.html#l00125">getPlayerType</a>(), <a class="el" href="Formations_8C-source.html#l00117">setPlayerType</a>(), <a class="el" href="Formations_8C-source.html#l00090">setValues</a>(), and <a class="el" href="Formations_8C-source.html#l00106">show</a>(). </td> </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="Formations_8h-source.html">Formations.h</a><li><a class="el" href="Formations_8C-source.html">Formations.C</a></ul><hr><address><small>Generated on Thu Mar 7 00:37:56 2002 for UvA Trilearn 2001 by<a href="http://www.doxygen.org/index.html"><img src="doxygen.gif" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.12 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, © 1997-2001</small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -