root / proj / include / proj_func.h @ 314
History | View | Annotate | Download (1.39 KB)
1 | 156 | up20180655 | #ifndef PROJ_FUNC_H_INCLUDED
|
---|---|---|---|
2 | #define PROJ_FUNC_H_INCLUDED
|
||
3 | |||
4 | 192 | up20180642 | #include "ent.h" |
5 | 250 | up20180655 | #include "font.h" |
6 | 311 | up20180655 | #include "proj_structures.h" |
7 | 167 | up20180655 | |
8 | 200 | up20180655 | #include <stdint.h> |
9 | |||
10 | 156 | up20180655 | /**
|
11 | * @brief Cleans up all memory, unsubscribes interrupts.
|
||
12 | * @return ERROR_CODE code representing the result of the operation, SUCCESS code is returned if everything is OK
|
||
13 | * @see {_ERRORS_H_::errors}
|
||
14 | */
|
||
15 | int cleanup(void); |
||
16 | |||
17 | 240 | up20180655 | void update_key_presses(void); |
18 | |||
19 | /**
|
||
20 | * @brief Updates movement variables.
|
||
21 | */
|
||
22 | 307 | up20180642 | void update_movement(map_t *map, gunner_t *p, keys_t *keys, list_t *shooter_list);
|
23 | 240 | up20180655 | |
24 | 231 | up20180655 | void update_mouse(struct packet *p); |
25 | 171 | up20180655 | |
26 | 231 | up20180655 | keys_t* (get_key_presses)(void);
|
27 | |||
28 | 237 | up20180642 | void (shoot_bullet)(const gunner_t *shooter, list_t *bullet_list, const basic_sprite_t *bsp_bullet); |
29 | 231 | up20180655 | |
30 | 236 | up20180642 | void (update_game_state)(const map_t *map, list_t *shooter_list, list_t *bullet_list); |
31 | 231 | up20180655 | |
32 | 307 | up20180642 | void (get_random_spawn)(const map_t *map, gunner_t *p, list_t *l); |
33 | 246 | up20180655 | |
34 | 200 | up20180655 | void update_scale(void); |
35 | |||
36 | 250 | up20180655 | int32_t* get_mouse_X(void);
|
37 | 171 | up20180655 | |
38 | 250 | up20180655 | int32_t* get_mouse_Y(void);
|
39 | 171 | up20180655 | |
40 | 167 | up20180655 | /**
|
41 | * @brief
|
||
42 | * @param
|
||
43 | * @param
|
||
44 | * @param
|
||
45 | * @return Angle
|
||
46 | */
|
||
47 | 201 | up20180642 | double get_mouse_angle(gunner_t *p);
|
48 | 167 | up20180655 | |
49 | 250 | up20180655 | typedef struct timer { |
50 | int time;
|
||
51 | text_t *text; |
||
52 | char *array;
|
||
53 | } text_timer_t; |
||
54 | |||
55 | text_timer_t* (timer_ctor)(const font_t *fnt);
|
||
56 | |||
57 | void (timer_update)(text_timer_t *p);
|
||
58 | |||
59 | 251 | up20180655 | void (timer_reset)(text_timer_t *p);
|
60 | |||
61 | 250 | up20180655 | void (timer_dtor)(text_timer_t *p);
|
62 | |||
63 | 156 | up20180655 | #endif /* end of include guard: PROJ_FUNC_H_INCLUDED */ |