Project

General

Profile

Revision 340

more changes in ent.h, ent.c

View differences:

proj_func.h
1 1
#ifndef PROJ_FUNC_H_INCLUDED
2 2
#define PROJ_FUNC_H_INCLUDED
3 3

  
4
/**
5
 * @defgroup proj_func proj_func
6
 * @brief Project helper functions.
7
 *
8
 * @{
9
 */
10

  
4 11
#include "ent.h"
5 12
#include "text.h"
6 13
#include "proj_structures.h"
......
29 36

  
30 37
void (update_game_state)(const map_t *map, list_t *shooter_list, list_t *bullet_list);
31 38

  
32
void (get_random_spawn)(const map_t *map, gunner_t *p, list_t *l);
33 39

  
40

  
34 41
void update_scale(void);
35 42

  
36 43
int16_t* get_mouse_X(void);
......
43 50

  
44 51
double get_mouse_angle(gunner_t *p);
45 52

  
53
/**
54
 * @}
55
 */
56

  
57
/**
58
 * @defgroup text_timer_t text_timer_t
59
 * @ingroup proj_func
60
 * @brief Text timer.
61
 *
62
 * @{
63
 */
64

  
65
/**
66
 * @brief Text timer.
67
 */
46 68
typedef struct {
69
    /// @brief Time since construction.
47 70
    int time;
71
    /// @brief Text.
48 72
    text_t *text;
49 73
} text_timer_t;
50 74

  
51 75
text_timer_t* (timer_ctor)(const font_t *fnt);
52 76

  
77
void (timer_dtor)(text_timer_t *p);
78

  
53 79
void (timer_update)(text_timer_t *p);
54 80

  
55 81
void (timer_reset)(text_timer_t *p);
56 82

  
57
void (timer_dtor)(text_timer_t *p);
83
/**
84
 * @}
85
 */
58 86

  
59 87
#endif /* end of include guard: PROJ_FUNC_H_INCLUDED */

Also available in: Unified diff