Revision 236
improved bullet stuff
ent.h | ||
---|---|---|
16 | 16 |
gunner_t* (gunner_ctor)(basic_sprite_t *dude, basic_sprite_t *weapon); |
17 | 17 |
void (gunner_dtor)(gunner_t *p); |
18 | 18 |
void (gunner_set_pos) (gunner_t *p, double x, double y); |
19 |
void (gunner_set_spawn) (gunner_t *p, double x, double y);
|
|
19 |
void (gunner_set_spawn) (gunner_t *p, double x, double y);
|
|
20 | 20 |
void (gunner_set_angle) (gunner_t *p, double angle ); |
21 | 21 |
void (gunner_set_health) (gunner_t *p, int health); |
22 | 22 |
void (gunner_set_curr_health) (gunner_t *p, int health); |
... | ... | |
34 | 34 |
|
35 | 35 |
struct bullet; |
36 | 36 |
typedef struct bullet bullet_t; |
37 |
bullet_t* (bullet_ctor)(basic_sprite_t *b, double x, double y, double vx, double vy); |
|
37 |
bullet_t* (bullet_ctor)(const gunner_t *shooter, basic_sprite_t *b, double x, double y, double vx, double vy);
|
|
38 | 38 |
void (bullet_dtor)(bullet_t *p); |
39 | 39 |
double (bullet_get_x) (const bullet_t *p); |
40 | 40 |
double (bullet_get_y) (const bullet_t *p); |
Also available in: Unified diff