#include <object.h>
Atributos públicos | |
int(* | obj_step )(void *) |
int(* | obj_action )(void *, SDL_Event *action) |
int(* | obj_alive )(void *) |
void(* | obj_destroy )(void *) |
int(* | obj_show )(void *) |
Sort of function pointers that contains the overloaded versions of opoerations of each type of object. All this operations expect a private data pointer, generaly used for maintan the information relative to the especific object (ex. poition). For add an object you only have to code this functions and reister it on the world.
|
Do what you are ment to do baby!. |
|
This function codes what to do when this object recives an event(ex. event crash -> die). |
|
This returns if the object is active or alive. |
|
This is just for release the resources it cosumes. It is called when the object "die" or finish the job. |
|
This function draw the thhing in the display, it's separated from step becase of performance reasons.(I think) |