Project

General

Profile

Revision 329

trying to make it work

View differences:

proj_structures.h
17 17

  
18 18
typedef struct {
19 19
    // host
20
    float    host_x;
21
    float    host_y;
22
    float    host_angle;
23
    float    host_health;
24
    float    host_current_health;
20
    int16_t    host_x;
21
    int16_t    host_y;
22
    int16_t    host_angle;
23
    int16_t    host_health;
24
    int16_t    host_current_health;
25 25

  
26 26
    // remote
27
    float    remote_x;
28
    float    remote_y;
29
    float    remote_angle;
30
    float    remote_health;
31
    float    remote_current_health;
27
    int16_t    remote_x;
28
    int16_t    remote_y;
29
    int16_t    remote_angle;
30
    int16_t    remote_health;
31
    int16_t    remote_current_health;
32 32

  
33 33
    // bullets
34
    uint8_t  no_bullets;
35
    float   *bullets_x;
36
    float   *bullets_y;
37
    float   *bullets_vx;
38
    float   *bullets_vy;
39
    bool    *bullets_shooter; // false for host, true for remote
34
    uint8_t    no_bullets;
35
    int16_t   *bullets_x;
36
    int16_t   *bullets_y;
37
    int16_t   *bullets_vx;
38
    int16_t   *bullets_vy;
39
    bool      *bullets_shooter; // false for host, true for remote
40 40
} host_info_t;
41 41

  
42 42
typedef struct {

Also available in: Unified diff