equal
deleted
inserted
replaced
|
1 #ifndef TEAM_H_ |
|
2 #define TEAM_H_ |
|
3 |
|
4 #include "weapon.h" |
|
5 #include "../hwconsts.h" |
|
6 |
|
7 #include <stdbool.h> |
|
8 #include <stdint.h> |
|
9 |
|
10 #define TEAM_DEFAULT_HOGNAME "Hog" |
|
11 #define TEAM_DEFAULT_HAT "NoHat" |
|
12 #define TEAM_DEFAULT_DIFFICULTY 0 |
|
13 #define TEAM_DEFAULT_HEALTH 100 |
|
14 |
|
15 typedef struct { |
|
16 char *name; |
|
17 char *hat; |
|
18 |
|
19 // Statistics. They are irrelevant for the engine or server, |
|
20 // but provided for ini reading/writing by the frontend. |
|
21 int rounds; |
|
22 int deaths; |
|
23 int kills; |
|
24 int suicides; |
|
25 |
|
26 // These settings are sometimes used on a per-team basis. |
|
27 int difficulty; |
|
28 int initialHealth; |
|
29 } flib_hog; |
|
30 |
|
31 typedef struct { |
|
32 flib_hog hogs[HEDGEHOGS_PER_TEAM]; |
|
33 char *name; |
|
34 char *grave; |
|
35 char *fort; |
|
36 char *voicepack; |
|
37 char *flag; |
|
38 |
|
39 // TODO binds |
|
40 |
|
41 // Transient settings used in game setup |
|
42 uint32_t color; |
|
43 int hogsInGame; |
|
44 bool remoteDriven; |
|
45 char *hash; |
|
46 |
|
47 // This setting is sometimes used on a per-game basis. |
|
48 flib_weaponset *weaponset; |
|
49 } flib_team; |
|
50 |
|
51 #endif /* TEAM_H_ */ |