6 #include "spritemaps.h"
18 OBJ_GRENADE_EXPLOSION
,
27 OBJ_GUNTURRET_MOVABLE_MAN
,
28 OBJ_GUNTURRET_MOVABLE_MACHINE
,
32 OBJ_GUNTURRET_FIXED_SOUTH
,
33 OBJ_GUNTURRET_FIXED_NORTH
,
43 typedef uint8_t anim_step
;
44 #define ANIM_STEP_INIT (anim_step) -1
46 typedef struct gameobj
{
49 enum sprite_index spritemap_id
;
51 enum animation_id animid
;
63 int gameobj_alloc(void);
64 void gameobj_free(int id
);
66 void gameobj_start_anim(int obj_id
, enum animation_id aid
);
67 void gameobj_init(int id
, vec2f
*pos
, vec2f
* vel
,
68 enum sprite_index spritemap_id
,
69 enum animation_id animid
, enum objtype objtype
);
71 void gameobj_init_bulletdata(int id
, int steps
);
75 extern gameobj objs
[OBJ_MAX
];
76 extern uint8_t obj_slot_used
[OBJ_MAX
];
77 extern uint8_t obj_count
;
79 //RcB: DEP "gameobj.c"