Commit graph

13 commits

Author SHA1 Message Date
Erik Ogenvik
079b751bfc Don't request possession if no mind prop data. 2015-05-24 11:25:07 +02:00
Erik Ogenvik
4f771383e8 Expose mind properties.
So that authoring tools can recognize entities with minds.
This should of course not be sent to regular entities in SIGHT
operations, but that should be handled with the attribute visibility
feature (yet to be written) instead.
2013-11-11 20:23:34 +01:00
Erik Ogenvik
efada4d5ea Only send thoughts to entities with minds. 2013-08-22 10:43:03 +02:00
Olek Wojnar
7f9ff2246d Remove CVS $Id tags
The legacy tags are causing build issues in Debian.
2013-07-15 20:31:59 +02:00
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
c047651da9 Add accessor for testing 2011-12-16 15:36:34 +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
86d73b6369 2008-09-27 Al Riddoch <alriddoch@googlemail.com>
* rulesets/TransientProperty.h, rulesets/MultiHandlerProperty.h,
	  rulesets/MultiHandlerProperty.cpp, rulesets/MindProperty.h,
	  rulesets/InternalProperties.h, rulesets/HandlerProperty.h,
	  rulesets/HandlerProperty.cpp: Switch a bunch of pretty simple
	  property classes over to using Propery<> rather than
	  DynamicProperty<>.
2008-09-27 16:00:21 +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
c992f85123 2008-09-12 Al Riddoch <alriddoch@googlemail.com>
* rulesets/MindProperty.h: Correct the documentation
	  string for the class.
2008-09-12 01:34:47 +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