This repository was archived by the owner on Mar 31, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCounter.html
More file actions
36 lines (35 loc) · 2.03 KB
/
Counter.html
File metadata and controls
36 lines (35 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Counter is a special <a href="http://berserk-games.com/knowledgebase/object">Object</a> type that has access to Counter related functionality like increment, decrement, and clear. Once you have a reference to an <a href="http://berserk-games.com/knowledgebase/object">Object</a> you can call these functions like this: <font face="monospace">obj.Counter.increment()</font>.
<a class="anchor" name="Functions"></a>
<table width="100%">
<caption><strong><h3>Functions</h3></strong></caption>
<tr>
<th class="table_column_rv">Return Value</th>
<th class="table_column_fn">Function Name</th>
<th>Description</th>
</tr>
<tr>
<td><font face="monospace">bool</font></td>
<td><font face="monospace">clear()</font></td>
<td><a class="anchor" name="clear"></a>Resets the Counter value back to 0.</td>
</tr>
<tr>
<td><font face="monospace">bool</font></td>
<td><font face="monospace">decrement()</font></td>
<td><a class="anchor" name="decrement"></a>Decrements the Counter's value by 1.</td>
</tr>
<tr>
<td><font face="monospace">int</font></td>
<td><font face="monospace">getValue()</font></td>
<td><a class="anchor" name="getValue"></a>Returns the current value of the Counter. This is the same as calling <a href="http://berserk-games.com/knowledgebase/object/#getValue"><font face="monospace">getValue()</font></a> on the <a href="http://berserk-games.com/knowledgebase/object">Object</a> reference.</td>
</tr>
<tr>
<td><font face="monospace">bool</font></td>
<td><font face="monospace">increment()</font></td>
<td><a class="anchor" name="increment"></a>Increments the Counter's value by 1.</td>
</tr>
<tr>
<td><font face="monospace">bool</font></td>
<td><font face="monospace">setValue(int count)</font></td>
<td><a class="anchor" name="setValue"></a>Sets the current value of the Counter. This is the same as calling <a href="http://berserk-games.com/knowledgebase/object/#setValue"><font face="monospace">setValue()</font></a> on the <a href="http://berserk-games.com/knowledgebase/object">Object</a> reference.</td>
</tr>
</table>