Commit graph

12 commits

Author SHA1 Message Date
Alistair Riddoch
09547422d6 Fix a memory leak in MindProperty 2013-01-28 13:17:23 +00:00
Alistair Riddoch
4a9c7078f7 Refactor to use LocatedEntity as base class
All IG code should use the interface of LocatedEntity when dealing
with any entity, rather than sometimes requiring Entity. Add virtual
functions to the interface where required, and modify all other interfaces
to stop them using Entity. This makes the code way cleaner, and much better
de-coupled.
2013-01-17 10:17:07 +00:00
Alistair Riddoch
72c956d4b4 First pass at copy method for all property classes 2013-01-07 23:03:25 +00:00
Alistair Riddoch
1e7515bbd0 Remove a bunch of debug output 2011-12-16 16:49:35 +00:00
Alistair Riddoch
95cddcf243 Correctly ensure new mind has a type 2011-12-16 13:22:57 +00:00
Alistair Riddoch
610f575841 Cleanly return if the entity is not supposed to have a mind 2011-12-16 13:14:18 +00:00
Alistair Riddoch
a6ff04a36b Add stub integration test for MindProperty 2011-12-16 09:20:30 +00:00
Alistair Riddoch
b870f08592 Initialize member pointer 2011-12-15 20:10:57 +00:00
Alistair Riddoch
5a2c7b6d14 Add in the mind abstract functionaltiy, and use the new factory mechanism 2011-12-15 19:22:35 +00:00
Alistair Riddoch
be735604b3 Move mind creation to the property
Also clean up factory, make more flexible and use shared script factory
code.
2011-12-15 18:33:32 +00:00
Al Riddoch
81d192d891 2008-09-12 Al Riddoch <alriddoch@googlemail.com>
* rulesets/MindProperty.cpp, rulesets/MindProperty.h: Implement
	  adding a mind to a character entity when the property
	  is applied.
2008-09-12 13:59:09 +00:00
Al Riddoch
aa2651f0a8 2008-09-10 Al Riddoch <alriddoch@googlemail.com>
* rulesets/MindProperty.cpp, rulesets/MindProperty.h: A new
	  property class which will add a mind to an entity.
2008-09-10 14:12:04 +00:00