Revision 240
weird things
proj_func.h | ||
---|---|---|
12 | 12 |
*/ |
13 | 13 |
int cleanup(void); |
14 | 14 |
|
15 |
void update_key_presses(void); |
|
16 |
|
|
17 |
/** |
|
18 |
* @brief Updates movement variables. |
|
19 |
*/ |
|
20 |
void update_movement(const map_t *map, list_t *shooter_list); |
|
21 |
|
|
22 | 15 |
typedef struct keys { |
23 | 16 |
uint8_t w_pressed : 1; |
24 | 17 |
uint8_t a_pressed : 1; |
... | ... | |
30 | 23 |
uint8_t lb_pressed : 1; |
31 | 24 |
} keys_t; |
32 | 25 |
|
26 |
void update_key_presses(void); |
|
27 |
|
|
28 |
/** |
|
29 |
* @brief Updates movement variables. |
|
30 |
*/ |
|
31 |
void update_movement(const map_t *map, gunner_t *p, gunner_t *p2); |
|
32 |
|
|
33 | 33 |
void update_mouse(struct packet *p); |
34 | 34 |
|
35 | 35 |
keys_t* (get_key_presses)(void); |
... | ... | |
53 | 53 |
*/ |
54 | 54 |
double get_mouse_angle(gunner_t *p); |
55 | 55 |
|
56 |
/** |
|
57 |
* @brief Get horizontal movement direction. |
|
58 |
* @return Horizontal movement direction (-1 -> heading LEFT; 0 -> not moving horizontally; 1 -> heading RIGHT) |
|
59 |
*/ |
|
60 |
int get_hor_movement(void); |
|
61 |
|
|
62 |
/** |
|
63 |
* @brief Get vertical movement direction. |
|
64 |
* @return Vertical movement direction (-1 -> heading UP; 0 -> not moving vertically; 1 -> heading DOWN) |
|
65 |
*/ |
|
66 |
int get_ver_movement(void); |
|
67 |
|
|
68 | 56 |
#endif /* end of include guard: PROJ_FUNC_H_INCLUDED */ |
Also available in: Unified diff