Revision 302
working on zombies
ent.h | ||
---|---|---|
19 | 19 |
|
20 | 20 |
struct gunner; |
21 | 21 |
typedef struct gunner gunner_t; |
22 |
gunner_t* (gunner_ctor)(basic_sprite_t *dude, basic_sprite_t *weapon, gunner_type tp);
|
|
22 |
gunner_t* (gunner_ctor)(basic_sprite_t *dude, basic_sprite_t *weapon, gunner_type type, int team);
|
|
23 | 23 |
void (gunner_dtor)(gunner_t *p); |
24 | 24 |
void (gunner_set_pos) (gunner_t *p, double x, double y); |
25 | 25 |
void (gunner_set_spawn) (gunner_t *p, double x, double y); |
... | ... | |
36 | 36 |
int16_t (gunner_get_x_screen) (const gunner_t *p); |
37 | 37 |
int16_t (gunner_get_y_screen) (const gunner_t *p); |
38 | 38 |
gunner_type (gunner_get_type) (const gunner_t *p); |
39 |
int (gunner_get_team) (const gunner_t *p); |
|
39 | 40 |
void (gunner_draw)(gunner_t *p); |
40 | 41 |
void (gunner_draw_health)(const gunner_t *p); |
41 | 42 |
|
43 |
double (gunner_distance)(const gunner_t *p1, const gunner_t *p2); |
|
44 |
|
|
42 | 45 |
struct bullet; |
43 | 46 |
typedef struct bullet bullet_t; |
44 | 47 |
bullet_t* (bullet_ctor)(const gunner_t *shooter, const basic_sprite_t *b, double x, double y, double vx, double vy); |
... | ... | |
49 | 52 |
int16_t (bullet_get_y_screen)(const bullet_t *p); |
50 | 53 |
double (bullet_get_damage) (const bullet_t *p); |
51 | 54 |
void (bullet_set_damage) (bullet_t *p, double damage); |
55 |
const gunner_t* (bullet_get_shooter)(const bullet_t *p); |
|
52 | 56 |
void (bullet_update_movement)(bullet_t *p); |
53 | 57 |
void (bullet_update_movement_list)(list_t *bullet_list); |
54 | 58 |
void (bullet_draw)(bullet_t *p); |
Also available in: Unified diff