classstamina.html

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

HTML
459
字号
new effort value (0..1) </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether value was set. </dl><p>Definition at line <a class="el" href="Objects_8C-source.html#l00891">891</a> of file <a class="el" href="Objects_8C-source.html">Objects.C</a>.<p>References <a class="el" href="Objects_8h-source.html#l00256">m_dEffort</a>.<p>Referenced by <a class="el" href="Objects_8C-source.html#l00666">AgentObject::AgentObject</a>(), <a class="el" href="WorldModelPredict_8C-source.html#l00323">WorldModel::predictStaminaAfterDash</a>(), and <a class="el" href="WorldModelUpdate_8C-source.html#l00102">WorldModel::processNewAgentInfo</a>().    </td>  </tr></table><a name="a7" doxytag="Stamina::setRecovery"></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 Stamina::setRecovery </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">double&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>d</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 sets the recovery value. This value should be between 0 and 1, otherwise the value is set to the closest value in this interval (0 for negative values, 1 for higher values) and false is returned. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>d</em>&nbsp;</td><td>new recovery value (0..1) </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether value was set. </dl><p>Definition at line <a class="el" href="Objects_8C-source.html#l00924">924</a> of file <a class="el" href="Objects_8C-source.html">Objects.C</a>.<p>References <a class="el" href="Objects_8h-source.html#l00257">m_dRecovery</a>.<p>Referenced by <a class="el" href="Objects_8C-source.html#l00666">AgentObject::AgentObject</a>(), and <a class="el" href="WorldModelPredict_8C-source.html#l00323">WorldModel::predictStaminaAfterDash</a>().    </td>  </tr></table><a name="a3" doxytag="Stamina::setStamina"></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 Stamina::setStamina </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">double&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>d</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 sets the stamina value. This value should be positive, otherwise the value is set to 0 and false is returned. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>d</em>&nbsp;</td><td>new stamina value </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether value was set. </dl><p>Definition at line <a class="el" href="Objects_8C-source.html#l00863">863</a> of file <a class="el" href="Objects_8C-source.html">Objects.C</a>.<p>References <a class="el" href="Objects_8h-source.html#l00255">m_dStamina</a>.<p>Referenced by <a class="el" href="Objects_8C-source.html#l00666">AgentObject::AgentObject</a>(), <a class="el" href="WorldModelPredict_8C-source.html#l00323">WorldModel::predictStaminaAfterDash</a>(), and <a class="el" href="WorldModelUpdate_8C-source.html#l00102">WorldModel::processNewAgentInfo</a>().    </td>  </tr></table><a name="a1" doxytag="Stamina::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 Stamina::show </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">ostream &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>os</em> = cout          </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 prints the stamina values (stamina, effort and recovery) 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>&nbsp;</td><td>output stream </td></tr></table></dl><p>Definition at line <a class="el" href="Objects_8C-source.html#l00845">845</a> of file <a class="el" href="Objects_8C-source.html">Objects.C</a>.<p>References <a class="el" href="Objects_8h-source.html#l00256">m_dEffort</a>, <a class="el" href="Objects_8h-source.html#l00257">m_dRecovery</a>, and <a class="el" href="Objects_8h-source.html#l00255">m_dStamina</a>.<p>Referenced by <a class="el" href="Objects_8C-source.html#l00692">AgentObject::show</a>().    </td>  </tr></table><hr><h2>Member Data Documentation</h2><a name="o1" doxytag="Stamina::m_dEffort"></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 Stamina::m_dEffort<code> [private]</code>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Effort value (0..1) <p>Definition at line <a class="el" href="Objects_8h-source.html#l00256">256</a> of file <a class="el" href="Objects_8h-source.html">Objects.h</a>.<p>Referenced by <a class="el" href="Objects_8C-source.html#l00881">getEffort</a>(), <a class="el" href="Objects_8C-source.html#l00891">setEffort</a>(), and <a class="el" href="Objects_8C-source.html#l00845">show</a>().    </td>  </tr></table><a name="o2" doxytag="Stamina::m_dRecovery"></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 Stamina::m_dRecovery<code> [private]</code>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Recovery (0..1) <p>Definition at line <a class="el" href="Objects_8h-source.html#l00257">257</a> of file <a class="el" href="Objects_8h-source.html">Objects.h</a>.<p>Referenced by <a class="el" href="Objects_8C-source.html#l00914">getRecovery</a>(), <a class="el" href="Objects_8C-source.html#l00924">setRecovery</a>(), and <a class="el" href="Objects_8C-source.html#l00845">show</a>().    </td>  </tr></table><a name="o0" doxytag="Stamina::m_dStamina"></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 Stamina::m_dStamina<code> [private]</code>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Stamina value (&gt;0) <p>Definition at line <a class="el" href="Objects_8h-source.html#l00255">255</a> of file <a class="el" href="Objects_8h-source.html">Objects.h</a>.<p>Referenced by <a class="el" href="Objects_8C-source.html#l00854">getStamina</a>(), <a class="el" href="Objects_8C-source.html#l00863">setStamina</a>(), and <a class="el" href="Objects_8C-source.html#l00845">show</a>().    </td>  </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="Objects_8h-source.html">Objects.h</a><li><a class="el" href="Objects_8C-source.html">Objects.C</a></ul><hr><address><small>Generated on Thu Mar 7 00:37:58 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>, &copy;&nbsp;1997-2001</small></address></body></html>

⌨️ 快捷键说明

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