root / proj / include / ent.h @ 226
History | View | Annotate | Download (1.63 KB)
1 | 193 | up20180642 | #ifndef ENT_H_INCLUDED
|
---|---|---|---|
2 | #define ENT_H_INCLUDED
|
||
3 | |||
4 | #include "sprite.h" |
||
5 | |||
6 | void (ent_set_scale) (double n); |
||
7 | void (ent_set_origin)(double x, double y); |
||
8 | |||
9 | 194 | up20180642 | double (ent_get_scale) (void); |
10 | 193 | up20180642 | double (ent_get_XLength)(void); |
11 | double (ent_get_YLength)(void); |
||
12 | |||
13 | 201 | up20180642 | struct gunner;
|
14 | typedef struct gunner gunner_t; |
||
15 | gunner_t* (gunner_ctor)(basic_sprite_t *dude, basic_sprite_t *weapon); |
||
16 | void (gunner_dtor)(gunner_t *p);
|
||
17 | 216 | up20180642 | void (gunner_set_pos) (gunner_t *p, double x, double y); |
18 | void (gunner_set_angle)(gunner_t *p, double angle ); |
||
19 | 201 | up20180642 | double (gunner_get_x) (const gunner_t *p); |
20 | double (gunner_get_y) (const gunner_t *p); |
||
21 | int16_t (gunner_get_x_screen)(const gunner_t *p);
|
||
22 | int16_t (gunner_get_y_screen)(const gunner_t *p);
|
||
23 | void (gunner_draw)(gunner_t *p);
|
||
24 | 193 | up20180642 | |
25 | 201 | up20180642 | struct bullet;
|
26 | typedef struct bullet bullet_t; |
||
27 | bullet_t* (bullet_ctor)(basic_sprite_t *b); |
||
28 | 203 | up20180642 | void (bullet_dtor)(bullet_t *p);
|
29 | 216 | up20180642 | void (bullet_set_pos) (bullet_t *p, double x, double y); |
30 | 203 | up20180642 | void (bullet_set_angle)(bullet_t *p, double angle ); |
31 | double (bullet_get_x) (const bullet_t *p); |
||
32 | double (bullet_get_y) (const bullet_t *p); |
||
33 | int16_t (bullet_get_x_screen)(const bullet_t *p);
|
||
34 | int16_t (bullet_get_y_screen)(const bullet_t *p);
|
||
35 | 226 | up20180642 | void (bullet_update_movement)(bullet_t *p);
|
36 | 203 | up20180642 | void (bullet_draw)(bullet_t *p);
|
37 | 193 | up20180642 | |
38 | 216 | up20180642 | struct map;
|
39 | typedef struct map map_t; |
||
40 | map_t* (map_ctor)(const char **background, const char **collide); |
||
41 | void (map_dtor)(map_t *p);
|
||
42 | 220 | up20180655 | int (map_collides_point)(const map_t *p, double x, double y); |
43 | 226 | up20180642 | 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); |
||
45 | 216 | up20180642 | void (map_draw)(map_t *p);
|
46 | |||
47 | 193 | up20180642 | #endif //ENT_H_INCLUDED |