diff engine/core/model/structures/instancetree.h @ 339:0fd74235b34d

Fixes. * The signature of InstanceTree.add/remove is adapted to the new behaviour. * Add/Remove ActionListeners from Instances should now be reentrant. * Small compile warning fixed.
author phoku@33b003aa-7bff-0310-803a-e67f0ece8222
date Mon, 24 Aug 2009 18:52:49 +0000
parents d266506ff4f9
children
line wrap: on
line diff
--- a/engine/core/model/structures/instancetree.h	Mon Aug 24 18:32:03 2009 +0000
+++ b/engine/core/model/structures/instancetree.h	Mon Aug 24 18:52:49 2009 +0000
@@ -62,16 +62,18 @@
 		 * area.
 		 *
 		 * @param instance A pointer to the instance to add.
+		 * @note In case you added the instance before this will throw.
 		 */
-		bool addInstance(Instance* instance);
+		void addInstance(Instance* instance);
 
 		/** Removes an instance from the quad tree.
 		 *
 		 * Locates an instance in the quad tree then removes it.
 		 *
 		 * @param instance A pointer to the instance to find and remove.
+		 * @note In case you did @b not add the instance before this will throw.
 		 */
-		bool removeInstance(Instance* instance);
+		void removeInstance(Instance* instance);
 
 		/** Find all instances in a given area.
 		 *