root / proj / include / ent.h @ 193
History | View | Annotate | Download (682 Bytes)
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 | double (ent_get_XLength)(void); |
||
10 | double (ent_get_YLength)(void); |
||
11 | |||
12 | struct ent;
|
||
13 | typedef struct ent ent_t; |
||
14 | |||
15 | ent_t* (ent_ctor)(basic_sprite_t *dude, basic_sprite_t *weapon); |
||
16 | void (ent_dtor)(ent_t *p);
|
||
17 | |||
18 | void (ent_set_pos) (ent_t *p, int16_t x, int16_t y);
|
||
19 | void (ent_set_angle)(ent_t *p, double angle ); |
||
20 | |||
21 | double (ent_get_x) (const ent_t *p); |
||
22 | double (ent_get_y) (const ent_t *p); |
||
23 | int16_t (ent_get_x_screen)(const ent_t *p);
|
||
24 | int16_t (ent_get_y_screen)(const ent_t *p);
|
||
25 | |||
26 | void (ent_draw)(ent_t *p);
|
||
27 | |||
28 | #endif //ENT_H_INCLUDED |