Revision 216
many changes. implemented collision detection
ent.h | ||
---|---|---|
14 | 14 |
typedef struct gunner gunner_t; |
15 | 15 |
gunner_t* (gunner_ctor)(basic_sprite_t *dude, basic_sprite_t *weapon); |
16 | 16 |
void (gunner_dtor)(gunner_t *p); |
17 |
void (gunner_set_pos) (gunner_t *p, int16_t x, int16_t y);
|
|
18 |
void (gunner_set_angle)(gunner_t *p, double angle );
|
|
17 |
void (gunner_set_pos) (gunner_t *p, double x, double y);
|
|
18 |
void (gunner_set_angle)(gunner_t *p, double angle ); |
|
19 | 19 |
double (gunner_get_x) (const gunner_t *p); |
20 | 20 |
double (gunner_get_y) (const gunner_t *p); |
21 | 21 |
int16_t (gunner_get_x_screen)(const gunner_t *p); |
... | ... | |
26 | 26 |
typedef struct bullet bullet_t; |
27 | 27 |
bullet_t* (bullet_ctor)(basic_sprite_t *b); |
28 | 28 |
void (bullet_dtor)(bullet_t *p); |
29 |
void (bullet_set_pos) (bullet_t *p, int16_t x, int16_t y);
|
|
29 |
void (bullet_set_pos) (bullet_t *p, double x, double y);
|
|
30 | 30 |
void (bullet_set_angle)(bullet_t *p, double angle ); |
31 | 31 |
double (bullet_get_x) (const bullet_t *p); |
32 | 32 |
double (bullet_get_y) (const bullet_t *p); |
... | ... | |
34 | 34 |
int16_t (bullet_get_y_screen)(const bullet_t *p); |
35 | 35 |
void (bullet_draw)(bullet_t *p); |
36 | 36 |
|
37 |
struct map; |
|
38 |
typedef struct map map_t; |
|
39 |
map_t* (map_ctor)(const char **background, const char **collide); |
|
40 |
void (map_dtor)(map_t *p); |
|
41 |
int (map_collides)(const map_t *p, double x, double y); |
|
42 |
void (map_draw)(map_t *p); |
|
43 |
|
|
37 | 44 |
#endif //ENT_H_INCLUDED |
Also available in: Unified diff