Revision 250
in-game timer
proj_func.h | ||
---|---|---|
2 | 2 |
#define PROJ_FUNC_H_INCLUDED |
3 | 3 |
|
4 | 4 |
#include "ent.h" |
5 |
#include "font.h" |
|
5 | 6 |
|
6 | 7 |
#include <stdint.h> |
7 | 8 |
|
... | ... | |
42 | 43 |
|
43 | 44 |
void update_scale(void); |
44 | 45 |
|
45 |
int32_t get_mouse_X(void); |
|
46 |
int32_t* get_mouse_X(void);
|
|
46 | 47 |
|
47 |
int32_t get_mouse_Y(void); |
|
48 |
int32_t* get_mouse_Y(void);
|
|
48 | 49 |
|
49 | 50 |
/** |
50 | 51 |
* @brief |
... | ... | |
55 | 56 |
*/ |
56 | 57 |
double get_mouse_angle(gunner_t *p); |
57 | 58 |
|
59 |
typedef struct timer { |
|
60 |
int time; |
|
61 |
text_t *text; |
|
62 |
char *array; |
|
63 |
} text_timer_t; |
|
64 |
|
|
65 |
text_timer_t* (timer_ctor)(const font_t *fnt); |
|
66 |
|
|
67 |
void (timer_update)(text_timer_t *p); |
|
68 |
|
|
69 |
void (timer_dtor)(text_timer_t *p); |
|
70 |
|
|
58 | 71 |
#endif /* end of include guard: PROJ_FUNC_H_INCLUDED */ |
Also available in: Unified diff