Commit graph

17 commits

Author SHA1 Message Date
Erik Ogenvik
b054382f2a Add "archetype" as new type.
An archetype is used for creating new entities. It contains one or many
definitions for entities, along with relationship between them. It also
contains any extra data needed for a world simultion, such as thoughts
and knowledge.
Archetypes should be seen as blueprints for entity types, as they
describe how new one should be composed. They are created just as
regular entities, using the existing Create op functionality.
As an example, there should be one "human" entity type, with archetypes
such as "settler", "merchant", "soldier" etc. This differs from the
current setup where each of these are separate entity types.
2013-11-15 21:39:35 +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
510dde850f Hook in handler for property rules 2013-02-15 23:00:22 +00:00
Alistair Riddoch
6b7720526e Refactor Ruleset integration test 2012-12-20 19:11:23 +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
4ec041d418 Cleanup more includes 2011-09-18 17:39:29 +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
18609ac963 Strip out moved code, and get tests building. 2011-09-18 11:22:20 +01:00
Alistair Riddoch
a7c06e832f Switch to using OpRuleHandler 2011-09-18 02:28:40 +01:00
Alistair Riddoch
706da1fec6 Switch to using EntityRuleHandler 2011-09-18 01:43:53 +01:00
Alistair Riddoch
3cdc5a1c2f Move task rule processing code into TaskRuleHandler 2011-09-18 00:53:32 +01:00
Alistair Riddoch
6a774cd545 Restructure loading rules so the waiting is only used when loading a set. 2009-11-04 19:01:26 +00:00
Alistair Riddoch
18a510b75a Refactor to move scheduling redispatch to a single point. 2009-11-04 16:32:33 +00:00
Alistair Riddoch
f84eb2b4e4 Rename installRules to loadRules to disabiguate. 2009-11-03 12:02:25 +00:00
Alistair Riddoch
e69004325d Remove obsolete include. 2009-08-22 02:39:48 +01:00
Alistair Riddoch
2a2fe93575 Move code for configuring a task factory into a separate method, so it
can be called when updating such a class.
2009-08-21 01:24:44 +01:00
Alistair Riddoch
208f553f04 Move the functionality for loading rule data, and configuring into Ruleset. 2009-08-19 02:47:15 +01:00