Commit graph

40 commits

Author SHA1 Message Date
Alistair Riddoch
6966ae3c1c Support data driven properties more fully
This commit adds Atlas data_type definitions which property types
inherit from. It also adds methods used to install stuff that inherits from
them.
2013-02-22 00:37:39 +00:00
Alistair Riddoch
25f37aa2cd Add copy to DecaysProperty and check 2013-02-14 19:32:24 +00:00
Alistair Riddoch
3643266581 Add copy method to BiomassProperty and check 2013-02-14 19:16:29 +00:00
Alistair Riddoch
9fe81568e1 Add required copy method to BurnSpeedProperty 2013-02-14 19:03:08 +00:00
Alistair Riddoch
9414a7c2b2 Remove obsolete handlerProperty 2013-02-14 00:16:15 +00:00
Alistair Riddoch
8344d5c8b0 Convert TerrainModProperty to delegates 2013-02-14 00:04:58 +00:00
Alistair Riddoch
5413ea5573 Update BurnSpeed and Teleport properties to use delegate 2013-02-13 21:24:18 +00:00
Alistair Riddoch
14661a9710 Update the BiomassProperty as a delegate 2013-02-13 20:57:22 +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
09547422d6 Fix a memory leak in MindProperty 2013-01-28 13:17:23 +00:00
Alistair Riddoch
fb4b698866 Convert Motion to use entity base class 2013-01-18 19:27:37 +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
51b5c50215 Move DecaysProperty handler into class 2013-01-10 10:07:44 +00:00
Alistair Riddoch
7e43da878d Move the telport property handler into class 2013-01-10 09:33:25 +00:00
Alistair Riddoch
7ec8b51d62 Move TerrainMod property handlers into class 2013-01-10 00:19:31 +00:00
Alistair Riddoch
a640a15b1b Move burn_handler into a class of its own 2013-01-09 22:48:40 +00:00
Alistair Riddoch
b5f235d023 Move eat_handler into its own class 2013-01-09 22:26:12 +00:00
Alistair Riddoch
1bbb936555 Fill in copy methods on remaining properties 2013-01-08 00:19:23 +00:00
Alistair Riddoch
72c956d4b4 First pass at copy method for all property classes 2013-01-07 23:03:25 +00:00
Alistair Riddoch
508a98bb49 Add an operation method to Property interface 2013-01-03 23:17:51 +00:00
Alistair Riddoch
9792d83f77 Stub out a lot of code, and fix up test 2012-12-17 09:32:28 +00:00
Alistair Riddoch
98315023bc Clean up the remaining test names 2012-12-14 20:28:43 +00:00
Alistair Riddoch
60b32a0e12 Clean up Account::CreateOperation test 2012-12-14 20:27:16 +00:00
Alistair Riddoch
d43d4521fc Clean up Account::GetOperation test 2012-12-14 20:25:52 +00:00
Alistair Riddoch
315725d55a Clean up Account::ImaginaryOperation test 2012-12-14 20:24:39 +00:00
Alistair Riddoch
0e0e762a06 Clean up LookOperation test 2012-12-14 20:22:20 +00:00
Alistair Riddoch
1f4dbde4e2 Clean up the Account::SetOperation integration test 2012-12-14 20:14:28 +00:00
Alistair Riddoch
79468683f7 Clean up Account::TalkOperation integration 2012-12-14 19:56:12 +00:00
Alistair Riddoch
2cfa53f312 Simplify test to that which requires integation 2012-12-14 19:49:30 +00:00
Alistair Riddoch
f748c0cde8 Remove or rename some tests 2012-12-14 12:39:53 +00:00
Alistair Riddoch
7634a7a136 Fix up test into separate parts 2012-12-14 09:04:06 +00:00
Alistair Riddoch
9cb34722e6 Clean up test a bit 2012-12-13 15:28:22 +00:00
Alistair Riddoch
1e2c93d6b8 Try and restructure bad test a bit 2012-12-13 14:27:34 +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
a122db8b51 Fix up a bunch of tests to use CommClient template 2012-08-01 19:42:36 +01:00
Alistair Riddoch
e944b6c999 Update tests for modified interface 2011-10-31 13:04:55 +00:00
Alistair Riddoch
31bfb426af Fix up tests for modified interface 2011-10-31 12:47:56 +01:00
Alistair Riddoch
8a4fcc6ff6 Fix up the tests 2011-10-30 01:04:54 +02:00
Alistair Riddoch
cc46402697 Move Account test to an integration test 2011-09-27 07:38:44 +01:00
Renamed from tests/Accounttest.cpp (Browse further)