#include <server.h>
Static Public Methods | |
| int | Init () |
| First call to server, or call after a Destroy(). | |
| void | Destroy () |
| Shutdown server. | |
| int | IsPaused () |
| Determine if server is paused. | |
| void | Pause () |
| Stops server from updating. Timers return same time elapsed. | |
| void | UnPause () |
| Resume server updates. | |
| void | Update () |
| Updates timers. | |
| float | Frequency () |
| . | |
| float | Period () |
| . | |
| int | NumTimers () |
| Number of timers allocated. | |
| int | IsTimer (int t) |
| Determine if an int is a timer. | |
| int | StartTimer () |
| Allocates a timer. Returns the index of the timer on success else NULLTIMER. | |
| void | StopTimer (int &t) |
| Deallocates the timer. Sets it to NULLTIMER. | |
| void | ResetTimer (int t) |
| . | |
| float | SecondsSince (int t=NULLTIMER) |
| Determine elapsed time. | |
| int | ExpiredTimer (int t, float seconds) |
| Determine if timer has expired. | |
|
||||||||||||
|
Determine if timer has expired.
|
|
|
Determine elapsed time.
|
1.2.17