|
Atrinik Server 2.5
|
#include <global.h>Go to the source code of this file.
Data Structures | |
| struct | _cftimer |
Defines | |
| #define | TIMER_MODE_DEAD 0 |
| #define | TIMER_MODE_SECONDS 1 |
| #define | TIMER_MODE_CYCLES 2 |
| #define | MAX_TIMERS 1000 |
| #define | TIMER_ERR_NONE 0 |
| #define | TIMER_ERR_ID -1 |
| #define | TIMER_ERR_OBJ -2 |
| #define | TIMER_ERR_MODE -3 |
Typedefs | |
| typedef struct _cftimer | cftimer |
Atrinik timers support header file.
A timer is a kind of "clock" associated with an object. When the counter of a timer reaches 0, it is removed from the list of active timers and an EVENT_TIMER is generated for the target object.
Definition in file timers.h.
| #define MAX_TIMERS 1000 |
Timer limits.
You can't create more than 1000 timers (I created the timers table as a static one not (only) because I was too lazy/incompetent to implement is as a dynamic linked-list, but because:
Anyway, if you think 1000 is not enough, you can safely increase this - memory should not be a problem in that case, given the size of a cftimer.
1.7.4