Project

General

Profile

Revision 229

kinda health bar

View differences:

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, double x, double 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);
17
void (gunner_set_pos)               (gunner_t *p, double x, double y);
18
void (gunner_set_angle)             (gunner_t *p, double angle      );
19
void (gunner_set_health)            (gunner_t *p, int health);
20
void (gunner_set_curr_health)       (gunner_t *p, int health);
21
double  (gunner_get_x)              (const gunner_t *p);
22
double  (gunner_get_y)              (const gunner_t *p);
23
int     (gunner_get_health)         (const gunner_t *p);
24
int     (gunner_get_curr_health)    (const gunner_t *p);
25
int16_t (gunner_get_x_screen)       (const gunner_t *p);
26
int16_t (gunner_get_y_screen)       (const gunner_t *p);
23 27
void (gunner_draw)(gunner_t *p);
28
void (gunner_draw_health)(const gunner_t *p);
24 29

  
25 30
struct bullet;
26 31
typedef struct bullet bullet_t;
......
32 37
int16_t (bullet_get_y_screen)(const bullet_t *p);
33 38
void (bullet_update_movement)(bullet_t *p);
34 39
void (bullet_draw)(bullet_t *p);
40
void (gunner_draw_health)(const gunner_t *p);
35 41

  
36 42
struct map;
37 43
typedef struct map map_t;

Also available in: Unified diff