Counter
Counter class for keeping track of counts
Constructor Summary
| Public Constructor | ||
| public |
|
|
Method Summary
| Public Methods | ||
| public |
Change the |
|
| public |
Set the |
|
| public |
Decrements the |
|
| public |
dispose() |
|
| public |
Increments the |
|
| public |
Listen to another counter object and change this |
|
| public |
onZeroOnce(callback: Function, context: Object): undefined Invole the callback function once, when the |
|
| public |
Stop listening to the other counter object |
|
Public Constructors
public constructor() source
Public Methods
public change(delta: Integer): undefined source
Change the count
Params:
| Name | Type | Attribute | Description |
| delta | Integer | count change |
public dispose() source
public listen(counter: Counter): undefined source
Listen to another counter object and change this count by the
same amount
Params:
| Name | Type | Attribute | Description |
| counter | Counter | the counter object to listen to |
