equal
deleted
inserted
replaced
60 int rounds; |
60 int rounds; |
61 int wins; |
61 int wins; |
62 int campaignProgress; |
62 int campaignProgress; |
63 |
63 |
64 // Transient settings used in game setup |
64 // Transient settings used in game setup |
65 uint32_t color; |
65 int colorIndex; // Index into a color table |
66 int hogsInGame; |
66 int hogsInGame; |
67 bool remoteDriven; |
67 bool remoteDriven; |
68 char *ownerName; |
68 char *ownerName; |
69 } flib_team; |
69 } flib_team; |
70 |
70 |
96 * Set the same weaponset for every hog in the team |
96 * Set the same weaponset for every hog in the team |
97 */ |
97 */ |
98 void flib_team_set_weaponset(flib_team *team, flib_weaponset *set); |
98 void flib_team_set_weaponset(flib_team *team, flib_weaponset *set); |
99 |
99 |
100 /** |
100 /** |
|
101 * Set the same initial health for every hog. |
|
102 */ |
|
103 void flib_team_set_health(flib_team *team, int health); |
|
104 |
|
105 /** |
101 * Increase the reference count of the object. Call this if you store a pointer to it somewhere. |
106 * Increase the reference count of the object. Call this if you store a pointer to it somewhere. |
102 * Returns the parameter. |
107 * Returns the parameter. |
103 */ |
108 */ |
104 flib_team *flib_team_retain(flib_team *team); |
109 flib_team *flib_team_retain(flib_team *team); |
105 |
110 |
111 /** |
116 /** |
112 * Create a deep copy of a team. Returns NULL on failure. |
117 * Create a deep copy of a team. Returns NULL on failure. |
113 * The referenced weaponsets are not copied, so the new |
118 * The referenced weaponsets are not copied, so the new |
114 * team references the same weaponsets. |
119 * team references the same weaponsets. |
115 */ |
120 */ |
116 flib_team *flib_team_copy(flib_team *team); |
121 flib_team *flib_team_copy(const flib_team *team); |
117 |
122 |
118 #endif /* TEAM_H_ */ |
123 #endif /* TEAM_H_ */ |