equal
deleted
inserted
replaced
|
1 /** |
|
2 * This file defines a data structure for a hedgewars team. |
|
3 * |
|
4 * Teams are used in several different contexts in Hedgewars, and some of these require |
|
5 * extra information about teams. For example, the weaponset is important |
|
6 * to the engine, but not for ini reading/writing, and with the team statistics it is the |
|
7 * other way around. To keep things simple, the data structure can hold all information |
|
8 * used in any context. On the downside, tat means we can't use static typing to ensure |
|
9 * that team information is "complete" for a particular purpose. |
|
10 */ |
1 #ifndef TEAM_H_ |
11 #ifndef TEAM_H_ |
2 #define TEAM_H_ |
12 #define TEAM_H_ |
|
13 |
3 |
14 |
4 #include "weapon.h" |
15 #include "weapon.h" |
5 #include "../hwconsts.h" |
16 #include "../hwconsts.h" |
6 |
17 |
7 #include <stdbool.h> |
18 #include <stdbool.h> |
8 #include <stdint.h> |
19 #include <stdint.h> |
9 |
20 |
10 #define TEAM_DEFAULT_HOGNAME "Hog" |
|
11 #define TEAM_DEFAULT_HAT "NoHat" |
|
12 #define TEAM_DEFAULT_DIFFICULTY 0 |
|
13 #define TEAM_DEFAULT_HEALTH 100 |
21 #define TEAM_DEFAULT_HEALTH 100 |
14 |
|
15 // TODO default bindings? |
|
16 |
22 |
17 typedef struct { |
23 typedef struct { |
18 char *action; |
24 char *action; |
19 char *binding; |
25 char *binding; |
20 } flib_binding; |
26 } flib_binding; |