Project

General

Profile

Revision 201

renamed gunner

View differences:

ent.h
10 10
double (ent_get_XLength)(void);
11 11
double (ent_get_YLength)(void);
12 12

  
13
struct ent;
14
typedef struct ent ent_t;
13
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
void (gunner_set_pos)  (gunner_t *p, int16_t x, int16_t y);
18
void (gunner_set_angle)(gunner_t *p, double angle        );
19
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);
15 24

  
16
ent_t* (ent_ctor)(basic_sprite_t *dude, basic_sprite_t *weapon);
17
void   (ent_dtor)(ent_t *p);
25
struct bullet;
26
typedef struct bullet bullet_t;
27
bullet_t* (bullet_ctor)(basic_sprite_t *b);
18 28

  
19
void (ent_set_pos)  (ent_t *p, int16_t x, int16_t y);
20
void (ent_set_angle)(ent_t *p, double angle        );
21

  
22
double  (ent_get_x)       (const ent_t *p);
23
double  (ent_get_y)       (const ent_t *p);
24
int16_t (ent_get_x_screen)(const ent_t *p);
25
int16_t (ent_get_y_screen)(const ent_t *p);
26

  
27
void (ent_draw)(ent_t *p);
28

  
29 29
#endif //ENT_H_INCLUDED

Also available in: Unified diff