Revision 226
implemented double-linked list. implemented bullet collision with walls from gunner collision. implemented bullet position updating with certain speed
ent.h | ||
---|---|---|
32 | 32 |
double (bullet_get_y) (const bullet_t *p); |
33 | 33 |
int16_t (bullet_get_x_screen)(const bullet_t *p); |
34 | 34 |
int16_t (bullet_get_y_screen)(const bullet_t *p); |
35 |
void (bullet_update_movement)(bullet_t *p); |
|
35 | 36 |
void (bullet_draw)(bullet_t *p); |
36 | 37 |
|
37 | 38 |
struct map; |
... | ... | |
39 | 40 |
map_t* (map_ctor)(const char **background, const char **collide); |
40 | 41 |
void (map_dtor)(map_t *p); |
41 | 42 |
int (map_collides_point)(const map_t *p, double x, double y); |
42 |
int (map_collides_gunner)(const map_t *p, gunner_t *gunner); |
|
43 |
int (map_collides_bullet)(const map_t *p, bullet_t *bullet); |
|
43 |
int (map_collides_gunner)(const map_t *p, const gunner_t *gunner);
|
|
44 |
int (map_collides_bullet)(const map_t *p, const bullet_t *bullet);
|
|
44 | 45 |
void (map_draw)(map_t *p); |
45 | 46 |
|
46 | 47 |
#endif //ENT_H_INCLUDED |
Also available in: Unified diff