Timeline Manager framework code. More...
Functions | |
| void | TM_Init (struct Game *g) |
| Init timeline. | |
| void | TM_Process () |
| Process current timeline actions. | |
| void | TM_HandleEvent (ALLEGRO_EVENT *ev) |
| Handle timer events. | |
| struct TM_Action * | TM_AddAction (bool(*func)(struct Game *, struct TM_Action *, enum TM_ActionState), struct TM_Arguments *args, char *name) |
| Add new action to main queue. | |
| struct TM_Action * | TM_AddBackgroundAction (bool(*func)(struct Game *, struct TM_Action *, enum TM_ActionState), struct TM_Arguments *args, float delay, char *name) |
| Add new action to background queue. | |
| bool | runinbackground (struct Game *game, struct TM_Action *action, enum TM_ActionState state) |
| Predefined action used by TM_AddQueuedBackgroundAction. | |
| struct TM_Action * | TM_AddQueuedBackgroundAction (bool(*func)(struct Game *, struct TM_Action *, enum TM_ActionState), struct TM_Arguments *args, float delay, char *name) |
| Add new action to main queue, which adds specified action into background queue. | |
| void | TM_AddDelay (float delay) |
| Add delay to main queue. | |
| void | TM_Pause (bool pause) |
| Pause timers. | |
| void | TM_Destroy () |
| Destroy timeline. | |
| struct TM_Arguments * | TM_AddToArgs (struct TM_Arguments *args, void *arg) |
| Add data to TM_Arguments queue. | |
| void | TM_DestroyArgs (struct TM_Arguments *args) |
| Destroy TM_Arguments queue. | |
| bool | TM_Initialized () |
| Check if timeline is initialised. | |
Variables | |
| unsigned int | lastid |
| struct Game * | game = NULL |
| struct TM_Action * | queue |
| struct TM_Action * | background |
| bool | paused |
Timeline Manager framework code.
1.8.1.1