zengine/doc/html/classZE_1_1ZTimer.html

294 lines
12 KiB
HTML
Raw Normal View History

2003-01-18 22:54:50 +00:00
<!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>ZE::ZTimer class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3-rc2 -->
<center>
2003-04-27 18:54:58 +00:00
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</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="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
2003-01-18 22:54:50 +00:00
<hr><h1>ZE::ZTimer Class Reference</h1><code>#include &lt;<a class="el" href="ZE__ZTimer_8h-source.html">ZE_ZTimer.h</a>&gt;</code>
<p>
<a href="classZE_1_1ZTimer-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
2003-04-27 18:54:58 +00:00
<a class="el" href="classZE_1_1ZTimer.html">ZTimer</a> timing class, class wraps common features of SDL timer. Inherited from ZObject and tied to <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a> main timer.
2003-01-18 22:54:50 +00:00
<p>
<table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<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="classZE_1_1ZTimer.html#a0">ZTimer</a> (bool useZEngine=true)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Constructs a new Timer.</em> <a href="#a0"></a><em></em></font><br><br></td></tr>
2003-04-27 18:54:58 +00:00
<tr><td nowrap align=right valign=top>virtual&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZTimer.html#a1">~ZTimer</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Virtual Destructor.</em> <a href="#a1"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZTimer.html#a2">Reset</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Reset Timer.</em> <a href="#a2"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZTimer.html#a3">Pause</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Pause Timer.</em> <a href="#a3"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZTimer.html#a4">Unpause</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Unpause Timer.</em> <a href="#a4"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>Uint32&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZTimer.html#a5">GetTime</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get Time of Timer.</em> <a href="#a5"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZTimer.html#a6">IsPaused</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get paused state.</em> <a href="#a6"></a><em></em></font><br><br></td></tr>
2003-01-18 22:54:50 +00:00
<tr><td colspan=2><br><h2>Protected Methods</h2></td></tr>
<tr><td nowrap align=right valign=top>Uint32&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZTimer.html#b0">GetParentTime</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get time from parent timer.</em> <a href="#b0"></a><em></em></font><br><br></td></tr>
<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr>
2003-04-27 18:54:58 +00:00
<tr><td nowrap align=right valign=top><a name="n0" doxytag="ZE::ZTimer::rEngine"></a>
<a class="el" href="classZE_1_1ZEngine.html">ZEngine</a> *&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZTimer.html#n0">rEngine</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Pointer to <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a> Object.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="n1" doxytag="ZE::ZTimer::rPaused"></a>
bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZTimer.html#n1">rPaused</a></td></tr>
2003-01-18 22:54:50 +00:00
<tr><td>&nbsp;</td><td><font size=-1><em>Paused / Unpaused state of Timer.</em></font><br><br></td></tr>
2003-04-27 18:54:58 +00:00
<tr><td nowrap align=right valign=top><a name="n2" doxytag="ZE::ZTimer::rUseZEngine"></a>
bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZTimer.html#n2">rUseZEngine</a></td></tr>
2003-01-18 22:54:50 +00:00
<tr><td>&nbsp;</td><td><font size=-1><em>Using <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a> timer or SDL global timer.</em></font><br><br></td></tr>
2003-04-27 18:54:58 +00:00
<tr><td nowrap align=right valign=top><a name="n3" doxytag="ZE::ZTimer::rPausedTime"></a>
Uint32&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZTimer.html#n3">rPausedTime</a></td></tr>
2003-01-18 22:54:50 +00:00
<tr><td>&nbsp;</td><td><font size=-1><em>Total time this timer has been paused.</em></font><br><br></td></tr>
2003-04-27 18:54:58 +00:00
<tr><td nowrap align=right valign=top><a name="n4" doxytag="ZE::ZTimer::rLastPause"></a>
Uint32&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZTimer.html#n4">rLastPause</a></td></tr>
2003-01-18 22:54:50 +00:00
<tr><td>&nbsp;</td><td><font size=-1><em>Time this Timer was paused.</em></font><br><br></td></tr>
</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="a0" doxytag="ZE::ZTimer::ZTimer"></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"> ZE::ZTimer::ZTimer </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">bool&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; <em>useZEngine</em> = true </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>
Sets TimePaused to current <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a> time if useZEngine is true, otherwise uses SDL timer. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>useZEngine</em>&nbsp;</td><td>Tells if timer should use <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a> or SDL. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
2003-04-27 18:54:58 +00:00
<a name="a1" doxytag="ZE::ZTimer::~ZTimer"></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"> ZE::ZTimer::~ZTimer </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><code> [virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Virtual destructor making future inheritance safe. </td>
</tr>
</table>
2003-01-18 22:54:50 +00:00
<hr><h2>Member Function Documentation</h2>
<a name="b0" doxytag="ZE::ZTimer::GetParentTime"></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"> Uint32 ZE::ZTimer::GetParentTime </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<code> [protected]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Protected method to get time from whichever timer is parent. <dl compact><dt><b>Returns:</b></dt><dd>Time on parent timer. </dd></dl>
</td>
</tr>
</table>
2003-04-27 18:54:58 +00:00
<a name="a2" doxytag="ZE::ZTimer::Reset"></a><p>
2003-01-18 22:54:50 +00:00
<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 ZE::ZTimer::Reset </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>
Set Timer back to Zero, will also unpause timer if it was paused. </td>
</tr>
</table>
2003-04-27 18:54:58 +00:00
<a name="a3" doxytag="ZE::ZTimer::Pause"></a><p>
2003-01-18 22:54:50 +00:00
<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 ZE::ZTimer::Pause </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>
Pause the timer if it is unpaused. </td>
</tr>
</table>
2003-04-27 18:54:58 +00:00
<a name="a4" doxytag="ZE::ZTimer::Unpause"></a><p>
2003-01-18 22:54:50 +00:00
<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 ZE::ZTimer::Unpause </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>
Unpause the timer if it is paused. </td>
</tr>
</table>
2003-04-27 18:54:58 +00:00
<a name="a5" doxytag="ZE::ZTimer::GetTime"></a><p>
2003-01-18 22:54:50 +00:00
<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"> Uint32 ZE::ZTimer::GetTime </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>
Get current time accounting for time paused. <dl compact><dt><b>Returns:</b></dt><dd>Current Timer Time. </dd></dl>
</td>
</tr>
</table>
2003-04-27 18:54:58 +00:00
<a name="a6" doxytag="ZE::ZTimer::IsPaused"></a><p>
2003-01-18 22:54:50 +00:00
<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 ZE::ZTimer::IsPaused </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>
Find out paused state of timer. <dl compact><dt><b>Returns:</b></dt><dd>Paused state for timer. </dd></dl>
</td>
</tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li>/include/<a class="el" href="ZE__ZTimer_8h-source.html">ZE_ZTimer.h</a><li>/src/<a class="el" href="ZE__ZTimer_8cpp.html">ZE_ZTimer.cpp</a></ul>
2003-04-27 18:54:58 +00:00
<hr><address style="align: right;"><small>Generated on Sun Apr 27 14:53:40 2003 for ZEngine by
2003-01-18 22:54:50 +00:00
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0
width=110 height=53></a>1.3-rc2 </small></address>
</body>
</html>