Project

General

Profile

Statistics
| Revision:

root / proj / proj_func.h @ 167

History | View | Annotate | Download (994 Bytes)

1 156 up20180655
#ifndef PROJ_FUNC_H_INCLUDED
2
#define PROJ_FUNC_H_INCLUDED
3
4 167 up20180655
#include "sprite.h"
5
6 156 up20180655
/**
7
 * @brief Cleans up all memory, unsubscribes interrupts.
8
 * @return ERROR_CODE code representing the result of the operation, SUCCESS code is returned if everything is OK
9
 * @see {_ERRORS_H_::errors}
10
 */
11
int cleanup(void);
12
13 167 up20180655
/**
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
39 156 up20180655
#endif /* end of include guard: PROJ_FUNC_H_INCLUDED */