Commit graph

15 commits

Author SHA1 Message Date
Erik Ogenvik
cd33df2d75 Use camel casing for tests.
This makes it much easier to find them in various editors.
2016-01-20 15:34:49 +01:00
Erik Ogenvik
d5dbeecdd6 Made tests compile after boost::asio refactor.
Unfortunately I haven't got time to properly implement updated tests for
the new classes, so in some cases I've opted for removing tests. With
more resources available it would be advantageous to implement proper
tests for all of the Comm classes, but that won't be done currently.
2014-02-03 12:19:42 +01:00
Erik Ogenvik
ce25a1d231 Added method for removing spawn points. 2013-11-24 15:01:38 +01:00
Erik Ogenvik
edc5fd604b Added property for respawning entity.
The "respawning" property makes an entity respawn instead of being
deleted. It intercepts the Delete op and instead of deleting the entity
it moves it to the specified spawn point.
A typical use case of this is to place the property on any user
controlled entity, thus making sure that it's never deleted and istead
respawned when killed or defeated.
2013-11-16 21:05:45 +01:00
Erik Ogenvik
9ab3a7e723 Make entities destroy themselves.
This allows for other features to preempt the destruction.
2013-11-16 13:13:49 +01: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
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
68494ba520 Use the ruleset global less often, making code more isolated 2012-01-19 19:34:20 +00:00
Alistair Riddoch
4643c777e4 Fix linkage of test 2011-12-15 23:12:45 +00:00
Alistair Riddoch
e7f5ac91ea Converty ScriptFactory for Entity to a template
This class is now completely generic except for the type pointers for
the class being wrapped, so this starts the codebase moving to using
it for all server objects that should be scriptable
2011-12-15 01:00:28 +00:00
Alistair Riddoch
eab0eaf433 Fix up the final test 2011-11-08 20:33:56 +00:00
Alistair Riddoch
85eebbb5b1 Clean out noScript from the tests 2011-10-13 15:19:18 +01:00
Alistair Riddoch
5cb0ac6ae5 Force asserts on in all tests. 2011-02-15 09:30:46 +00:00
Alistair Riddoch
0658f14751 Convert all Python tests to use macros, so they work with NDEBUG 2009-11-20 20:18:53 +00:00
Alistair Riddoch
de6fd4a0a9 Add full coverage test for PythonEntityScript 2009-11-14 03:18:59 +00:00