project_files/frontlib/model/team.h
changeset 7275 15f722e0b96f
parent 7271 5608ac657362
child 7314 6171f0bad318
--- a/project_files/frontlib/model/team.h	Mon Jun 25 15:21:18 2012 +0200
+++ b/project_files/frontlib/model/team.h	Wed Jun 27 18:02:45 2012 +0200
@@ -62,7 +62,7 @@
 	int campaignProgress;
 
 	// Transient settings used in game setup
-	uint32_t color;
+	int colorIndex;		// Index into a color table
 	int hogsInGame;
 	bool remoteDriven;
 	char *ownerName;
@@ -98,6 +98,11 @@
 void flib_team_set_weaponset(flib_team *team, flib_weaponset *set);
 
 /**
+ * Set the same initial health for every hog.
+ */
+void flib_team_set_health(flib_team *team, int health);
+
+/**
  * Increase the reference count of the object. Call this if you store a pointer to it somewhere.
  * Returns the parameter.
  */
@@ -113,6 +118,6 @@
  * The referenced weaponsets are not copied, so the new
  * team references the same weaponsets.
  */
-flib_team *flib_team_copy(flib_team *team);
+flib_team *flib_team_copy(const flib_team *team);
 
 #endif /* TEAM_H_ */