Crossfire Server, Branch 1.12
R12190
|
Variables for the custom timers. More...
Go to the source code of this file.
Data Structures | |
struct | _cftimer |
One timer. More... | |
Defines | |
#define | MAX_TIMERS 1000 |
Maximum number of timers. | |
#define | TIMER_ERR_ID -1 |
Invalid timer id. | |
#define | TIMER_ERR_MODE -3 |
Invalid timer mode. | |
#define | TIMER_ERR_NONE 0 |
No error. | |
#define | TIMER_ERR_OBJ -2 |
NULL object, or no EVENT_TIMER handler. | |
#define | TIMER_MODE_CYCLES 2 |
Timer is in server cycles. | |
#define | TIMER_MODE_DEAD 0 |
Used to mark a timer as unused in the list. | |
#define | TIMER_MODE_SECONDS 1 |
Timer is in seconds. | |
Typedefs | |
typedef struct _cftimer | cftimer |
One timer. | |
Variables | |
cftimer | timers_table [MAX_TIMERS] |
The actual timers. |
#define MAX_TIMERS 1000 |
Maximum number of timers.
Definition at line 63 of file timers.h.
Referenced by cftimer_create(), cftimer_destroy(), cftimer_find_free_id(), cftimer_init(), and cftimer_process_timers().
#define TIMER_ERR_ID -1 |
Invalid timer id.
Definition at line 69 of file timers.h.
Referenced by cfapi_timer_create(), cftimer_create(), cftimer_destroy(), and cftimer_find_free_id().
#define TIMER_ERR_MODE -3 |
#define TIMER_ERR_NONE 0 |
No error.
Definition at line 68 of file timers.h.
Referenced by cfapi_timer_create(), cftimer_create(), and cftimer_destroy().
#define TIMER_ERR_OBJ -2 |
NULL object, or no EVENT_TIMER handler.
Definition at line 70 of file timers.h.
Referenced by cftimer_create().
#define TIMER_MODE_CYCLES 2 |
Timer is in server cycles.
Definition at line 51 of file timers.h.
Referenced by cftimer_create(), and cftimer_process_timers().
#define TIMER_MODE_DEAD 0 |
Used to mark a timer as unused in the list.
Definition at line 49 of file timers.h.
Referenced by cftimer_create(), cftimer_destroy(), cftimer_find_free_id(), and cftimer_process_timers().
#define TIMER_MODE_SECONDS 1 |
Timer is in seconds.
Definition at line 50 of file timers.h.
Referenced by cftimer_create(), and cftimer_process_timers().