Commit graph

21 commits

Author SHA1 Message Date
Alistair Riddoch
9ebfefbea4 Modify interface to installFactory is available 2013-02-22 09:57:10 +00:00
Alistair Riddoch
2346abcbae Implement basic property rule handling 2013-02-18 23:29:24 +00:00
Alistair Riddoch
5eceba40cf Remove unused handler mechanism 2013-02-14 10:01:20 +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
4e66987bad Consolidate flags into one place 2013-01-14 09:59:54 +00:00
Alistair Riddoch
ddba4e3449 Fix an issue with double initialising singleton
BaseWorld is a singleton, but this test was creating two instance of
the subclass TestWorld at the same time. This would not cause any issues
with the tests, but would trip an assert in BaseWorld if it was compiled
with DEBUG set.
2012-12-26 00:04:56 +00:00
Alistair Riddoch
c649483da4 Stub out most of Ruleset integration test 2012-12-22 12:21:06 +00:00
Alistair Riddoch
6b7720526e Refactor Ruleset integration test 2012-12-20 19:11:23 +00:00
Alistair Riddoch
d9fb87d2e0 Cover SetOperation 2012-09-11 22:53:15 +01:00
Alistair Riddoch
6537e5da79 Break out the TestWorld::addNewEntity method
This allows tests to cover the case where an Entity is created by this
function if necessary
2012-09-06 13:48:40 +01:00
Alistair Riddoch
68494ba520 Use the ruleset global less often, making code more isolated 2012-01-19 19:34:20 +00:00
Alistair Riddoch
577539aa6e Make installing types a little more consistent 2011-12-17 18:37:28 +00:00
Alistair Riddoch
e47076482c Remove obsolete method 2011-12-11 05:26:37 +00:00
Alistair Riddoch
ac37383d8a Convery all the property get functions 2011-09-29 17:36:26 +01:00
Alistair Riddoch
e0c92ebf39 Remove reference to BaseWorld in EntityBuilder 2011-09-21 12:45:18 +01:00
Alistair Riddoch
0617417198 Fix up last test 2011-09-18 15:11:04 +01:00
Alistair Riddoch
18609ac963 Strip out moved code, and get tests building. 2011-09-18 11:22:20 +01:00
Alistair Riddoch
b5011456b6 Fix up tests now checks are stricter 2011-09-18 11:13:24 +01:00
Alistair Riddoch
5cb0ac6ae5 Force asserts on in all tests. 2011-02-15 09:30:46 +00:00
Alistair Riddoch
224a60ecb1 Check the results of test calls to avoid warnings. 2010-08-17 19:23:16 +01:00
Alistair Riddoch
934648117e Add an integration test for Ruleset and EntityBuilder so their unit tests can be isolated 2010-07-15 00:40:13 +01:00