Alistair Riddoch
ce45ef54e2
Add a check ensuring tasks duplicates don't overwrite
2013-03-04 00:51:47 +00:00
Alistair Riddoch
55b1d7fe1b
Check installFactory works.
2013-03-03 23:38:37 +00:00
Alistair Riddoch
2fe47b1f31
Add test to ensure duplicate doesn't clash
2013-03-03 23:35:03 +00:00
Alistair Riddoch
7a424cc0e0
Fix formatting and scopes
2013-03-03 23:19:39 +00:00
Alistair Riddoch
450a1a4483
Centralise setup and teardown
2013-03-03 23:16:44 +00:00
Alistair Riddoch
145b1efeb8
Break down the test into discrete functions
2013-03-03 23:04:15 +00:00
Alistair Riddoch
9c584b2f94
Make test setup as similar as possible
2013-03-03 22:55:15 +00:00
Alistair Riddoch
3f9d0fb99c
Make the test a friend, removing test subclass
2013-03-03 22:48:04 +00:00
Alistair Riddoch
409cb3f579
Restructure to run using framework
2013-03-03 22:37:11 +00:00
Alistair Riddoch
9ebfefbea4
Modify interface to installFactory is available
2013-02-22 09:57:10 +00:00
Alistair Riddoch
5eceba40cf
Remove unused handler mechanism
2013-02-14 10:01:20 +00:00
Alistair Riddoch
3d6f39cdee
Modify Property install method to take name
...
This change also switches DecaysProperty to using delegates as a proof of
concept.
2013-02-13 00:45:36 +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
508a98bb49
Add an operation method to Property interface
2013-01-03 23:17:51 +00:00
Alistair Riddoch
3227c6ead8
Remove some more test dependencies
2012-12-14 18:50:13 +00:00
Alistair Riddoch
71cbcdcfc1
Modify externalOperation to include Link
...
The Link reference provided is the object allowing direct communication
back to the external source of the operation. This allows us to handle
things more cleanly in some cases.
2012-12-04 20:39:35 +00:00
Alistair Riddoch
63330b34d4
Initialise Inheritance::noClass properly
...
Code that ends up with a reference to this object
need to check with isValid, so it's vital that it
is initialised to a null ptr.
2012-09-18 08:49:50 +01: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
f27f4e509e
Simplify the Task interface to take any op
2012-07-02 23:19:59 -07:00
Alistair Riddoch
bc001bfe76
Add Get/Info to the IG op dispatch
2012-06-30 01:06:14 -07:00
Alistair Riddoch
577539aa6e
Make installing types a little more consistent
2011-12-17 18:37:28 +00:00
Alistair Riddoch
d7b1f5eca4
Change include to avoid depending on ScriptFactory
2011-12-16 08:14:36 +00:00
Alistair Riddoch
0e8f9ccc95
Replace abstract script factories with common template
2011-12-14 14:26:01 +00:00
Alistair Riddoch
8b9cd49dfd
Strip out unused populate() method from EntityFactory
2011-12-13 11:50:46 +00:00
Alistair Riddoch
e47076482c
Remove obsolete method
2011-12-11 05:26:37 +00:00
Alistair Riddoch
d13e48d49d
Task can now be attached to any Entity
2011-12-02 23:10:41 +00:00
Alistair Riddoch
a8fb1c8c89
Fix up some tests
2011-11-08 20:32:35 +00:00
Alistair Riddoch
a516f55197
Remove TaskScript subclass
...
This class really wasn't used. Task had pure virtual methods, and TaskScript
was the only subclass
2011-11-03 22:57:46 +00:00
Alistair Riddoch
848f1f7973
Move remaining task script code into base class
2011-11-03 21:42:12 +00:00
Alistair Riddoch
035cdad470
Move script member into base class
2011-11-03 21:31:09 +00:00
Alistair Riddoch
24a6936499
Remove TaskScript irrelevant
...
It just called the method it overloaded
2011-11-03 20:40:32 +00:00
Alistair Riddoch
85eebbb5b1
Clean out noScript from the tests
2011-10-13 15:19:18 +01: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
07201f1358
Handle Inheritance more consistently
...
Add an internal method for base classes, allowing the code that manipulates
the inheritance tree to be in a consistent place.
2011-09-18 17:26:26 +01:00
Alistair Riddoch
253828ae7c
Stub out new TypeNode constructor
2011-09-17 19:09:28 +01:00
Alistair Riddoch
43455a6035
Use new TypeNode constructor where appropriate in tests
2011-09-17 18:54:37 +01:00
Alistair Riddoch
fa4ae198b1
TypeNode takes a name on construction
...
One is always required, and it's just bloaty to set separately
2011-09-16 18:30:22 +01:00
Alistair Riddoch
d86905b021
Fix up test stubs
2011-09-16 16:52:45 +01:00
Alistair Riddoch
72ea3c70e1
Fix up tests
2011-02-28 00:28:25 +00:00
Alistair Riddoch
5cb0ac6ae5
Force asserts on in all tests.
2011-02-15 09:30:46 +00:00
Alistair Riddoch
16ba830c42
Fixes for gcc 4.5, thanks to Alfredo Tupone
2010-10-20 22:51:42 +01:00
Alistair Riddoch
45c5e4f151
Initialise Location.loc in all tests
2010-09-16 05:14:35 +01:00
Alistair Riddoch
9644258726
Add coverage for all code paths in newEntity()
2010-07-16 02:12:53 +01:00
Alistair Riddoch
2e0c00f287
Isolate EntityBuilder unit test
2010-07-15 23:46:06 +01:00
Alistair Riddoch
6e6ff8acba
Remove out the rest of the test code, as it was really testing Ruleset code.
2009-08-21 00:29:37 +01:00
Alistair Riddoch
7ea86db794
Get the first phase of the EntityBuildertest passing.
2009-08-21 00:23:47 +01:00
Alistair Riddoch
51fcbb46fc
Strip down EntityBuilder test to remove the interface moved to Ruleset.
2009-08-20 23:13:15 +01:00