Revision 167
some changes
proj_func.h | ||
---|---|---|
1 | 1 |
#ifndef PROJ_FUNC_H_INCLUDED |
2 | 2 |
#define PROJ_FUNC_H_INCLUDED |
3 | 3 |
|
4 |
#include "sprite.h" |
|
5 |
|
|
4 | 6 |
/** |
5 | 7 |
* @brief Cleans up all memory, unsubscribes interrupts. |
6 | 8 |
* @return ERROR_CODE code representing the result of the operation, SUCCESS code is returned if everything is OK |
... | ... | |
8 | 10 |
*/ |
9 | 11 |
int cleanup(void); |
10 | 12 |
|
13 |
/** |
|
14 |
* @brief Updates movement variables. |
|
15 |
*/ |
|
16 |
void update_movement(void); |
|
17 |
|
|
18 |
/** |
|
19 |
* @brief |
|
20 |
* @param |
|
21 |
* @param |
|
22 |
* @param |
|
23 |
* @return Angle |
|
24 |
*/ |
|
25 |
double get_mouse_angle(sprite_t *p, int32_t mouse_x, int32_t mouse_y); |
|
26 |
|
|
27 |
/** |
|
28 |
* @brief Get horizontal movement direction. |
|
29 |
* @return Horizontal movement direction (-1 -> heading LEFT; 0 -> not moving horizontally; 1 -> heading RIGHT) |
|
30 |
*/ |
|
31 |
int get_hor_movement(void); |
|
32 |
|
|
33 |
/** |
|
34 |
* @brief Get vertical movement direction. |
|
35 |
* @return Vertical movement direction (-1 -> heading UP; 0 -> not moving vertically; 1 -> heading DOWN) |
|
36 |
*/ |
|
37 |
int get_ver_movement(void); |
|
38 |
|
|
11 | 39 |
#endif /* end of include guard: PROJ_FUNC_H_INCLUDED */ |
Also available in: Unified diff