project_files/frontlib/model/team.h
changeset 7320 e704706008d4
parent 7314 6171f0bad318
child 7470 0db1780ca938
--- a/project_files/frontlib/model/team.h	Thu Jul 05 22:22:48 2012 +0200
+++ b/project_files/frontlib/model/team.h	Tue Jul 10 19:33:57 2012 +0200
@@ -63,7 +63,6 @@
 } flib_hog;
 
 typedef struct {
-	int _referenceCount;
 	flib_hog hogs[HEDGEHOGS_PER_TEAM];
 	char *name;
 	char *grave;
@@ -95,6 +94,11 @@
 flib_team *flib_team_create(const char *name);
 
 /**
+ * Free all memory associated with the team
+ */
+void flib_team_destroy(flib_team *team);
+
+/**
  * Loads a team, returns NULL on error.
  */
 flib_team *flib_team_from_ini(const char *filename);
@@ -122,17 +126,6 @@
 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.
- */
-flib_team *flib_team_retain(flib_team *team);
-
-/**
- * Decrease the reference count of the object and free it if this was the last reference.
- */
-void flib_team_release(flib_team *team);
-
-/**
  * Create a deep copy of a team. Returns NULL on failure.
  * The referenced weaponsets are not copied, so the new
  * team references the same weaponsets.