Timeline Manager framework. More...
#include "main.h"Go to the source code of this file.
Classes | |
| struct | TM_Arguments |
| Arguments for TM_Action. More... | |
| struct | TM_Action |
| Timeline action. More... | |
Enumerations | |
| enum | TM_ActionState { TM_ACTIONSTATE_INIT, TM_ACTIONSTATE_RUNNING, TM_ACTIONSTATE_DESTROY } |
| State of the TM_Action. | |
Functions | |
| void | TM_Init (struct Game *game) |
| 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. | |
| 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. | |
Timeline Manager framework.
1.8.1.1