Revision 301
changed shooters
ent.h | ||
---|---|---|
11 | 11 |
double (ent_get_XLength)(void); |
12 | 12 |
double (ent_get_YLength)(void); |
13 | 13 |
|
14 |
typedef enum { |
|
15 |
gunner_meelee, |
|
16 |
gunner_ranged, |
|
17 |
gunner_player |
|
18 |
} gunner_type; |
|
19 |
|
|
14 | 20 |
struct gunner; |
15 | 21 |
typedef struct gunner gunner_t; |
16 |
gunner_t* (gunner_ctor)(basic_sprite_t *dude, basic_sprite_t *weapon); |
|
22 |
gunner_t* (gunner_ctor)(basic_sprite_t *dude, basic_sprite_t *weapon, gunner_type tp);
|
|
17 | 23 |
void (gunner_dtor)(gunner_t *p); |
18 | 24 |
void (gunner_set_pos) (gunner_t *p, double x, double y); |
19 | 25 |
void (gunner_set_spawn) (gunner_t *p, double x, double y); |
... | ... | |
29 | 35 |
double (gunner_get_curr_health) (const gunner_t *p); |
30 | 36 |
int16_t (gunner_get_x_screen) (const gunner_t *p); |
31 | 37 |
int16_t (gunner_get_y_screen) (const gunner_t *p); |
38 |
gunner_type (gunner_get_type) (const gunner_t *p); |
|
32 | 39 |
void (gunner_draw)(gunner_t *p); |
33 | 40 |
void (gunner_draw_health)(const gunner_t *p); |
34 | 41 |
|
Also available in: Unified diff