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
,
42 typedef uint8_t anim_step
;
43 #define ANIM_STEP_INIT (anim_step) -1
45 typedef struct gameobj
{
48 enum sprite_index spritemap_id
;
50 enum animation_id animid
;
65 int gameobj_alloc(void);
66 void gameobj_free(int id
);
68 void gameobj_start_anim(int obj_id
, enum animation_id aid
);
69 void gameobj_init(int id
, vec2f
*pos
, vec2f
* vel
,
70 enum sprite_index spritemap_id
,
71 enum animation_id animid
, enum objtype objtype
);
73 void gameobj_init_bulletdata(int id
, int steps
);
77 extern gameobj objs
[OBJ_MAX
];
78 extern uint8_t obj_slot_used
[OBJ_MAX
];
79 extern uint8_t obj_count
;
81 //RcB: DEP "gameobj.c"