equal
deleted
inserted
replaced
113 int flib_team_to_ini(const char *filename, const flib_team *team); |
113 int flib_team_to_ini(const char *filename, const flib_team *team); |
114 |
114 |
115 /** |
115 /** |
116 * Set the same weaponset for every hog in the team |
116 * Set the same weaponset for every hog in the team |
117 */ |
117 */ |
118 void flib_team_set_weaponset(flib_team *team, flib_weaponset *set); |
118 int flib_team_set_weaponset(flib_team *team, const flib_weaponset *set); |
119 |
119 |
120 /** |
120 /** |
121 * Set the same initial health for every hog. |
121 * Set the same initial health for every hog. |
122 */ |
122 */ |
123 void flib_team_set_health(flib_team *team, int health); |
123 void flib_team_set_health(flib_team *team, int health); |
124 |
124 |
125 /** |
125 /** |
126 * Create a deep copy of a team. Returns NULL on failure. |
126 * Create a deep copy of a team. Returns NULL on failure. |
127 * The referenced weaponsets are not copied, so the new |
|
128 * team references the same weaponsets. |
|
129 */ |
127 */ |
130 flib_team *flib_team_copy(const flib_team *team); |
128 flib_team *flib_team_copy(const flib_team *team); |
131 |
129 |
132 #endif /* TEAM_H_ */ |
130 #endif /* TEAM_H_ */ |