Commit graph

15 commits

Author SHA1 Message Date
Alistair Riddoch
58acb15154 Use new template for properties, and rename some
Properties must now be strictly in the same namespace as other definitions,
so I had to rename a few.
2013-03-01 21:52:09 +00:00
Alistair Riddoch
70c0762a69 Correct the name of the MPCMind class 2011-12-15 20:10:19 +00:00
Alistair Riddoch
be735604b3 Move mind creation to the property
Also clean up factory, make more flexible and use shared script factory
code.
2011-12-15 18:33:32 +00:00
Alistair Riddoch
a397a04798 Fix ordering of map elements, indenting and formatting 2009-11-01 20:52:34 +00:00
Al Riddoch
8f89c49499 2008-11-30 Al Riddoch <alriddoch@googlemail.com>
* rulesets/Makefile.am: Add ArithmeticFactory to the build in this
	  directory.

	* data/characters.xml: Add test statistics to the class.

	* rulesets/StatisticsProperty.cpp, rulesets/StatisticsProperty.h:
	  Add an install method which creates a script instance.

	* rulesets/mason/world/statistics/Statistics.py: Make the reference
	  to the owner optional.

	* server/CorePropertyManager.cpp: Add "statistics" to the factory.

	* server/Makefile.am, server/ArithmeticFactory.cpp,
	  server/ArithmeticFactory.h: Remove unused ArithmeticFactory code
	  from the build.
2008-11-30 01:03:26 +00:00
Al Riddoch
20bd652be3 2008-11-10 Al Riddoch <alriddoch@googlemail.com>
* data/characters.xml: Add default stamina to all mobile entities.
2008-11-10 22:23:25 +00:00
Al Riddoch
351058f34c 2008-09-13 Al Riddoch <alriddoch@googlemail.com>
* data/basic.xml, data/characters.xml, data/mason.xml: Add tick
	  properties to a bunch of entity classes so they no longer need
	  a setup operation to get them going.

	* rulesets/mason/world/objects/Weather.py,
	  rulesets/mason/world/objects/elements/Fire.py,
	  rulesets/mason/world/objects/plants/seeds/Apple.py: Remove setup
	  handlers from a bunch of scripts as it is now handled by
	  properties.

	* data/buildings.xml: Add setup property to entity classes which
	  really need a setup op at startup.

	* client/BaseClient.cpp: Send a look when creating the avatar, so
	  that notifications get back without the need for a special case.

	* common/op_switch.h, rulesets/Creator.cpp, rulesets/Entity.cpp,
	  rulesets/Entity.h, server/WorldRouter.cpp:
	  Remove the setup operation sent to all entities on startup by
	  default. Get rid of some special cases that depended on it.

	* rulesets/InternalProperties.cpp, rulesets/InternalProperties.h:
	  Make the tick property schedule the operation on apply(), and
	  use the property value as the time to schedule it.
2008-09-13 18:02:08 +00:00
Al Riddoch
4bff98a608 2008-09-12 Al Riddoch <alriddoch@googlemail.com>
* data/animals.xml, data/characters.xml: Make "mobile" the base class
	  for everything that has mind. Add a default mind class property,
	  and a tick class property.
2008-09-12 13:57:39 +00:00
Al Riddoch
1382f9b82c 2008-09-09 Al Riddoch <alriddoch@googlemail.com>
* data/characters.xml: Add bboxes as class properties to most
	  character classes.
2008-09-09 18:08:20 +00:00
Al Riddoch
ba77e1d545 2008-09-08 Al Riddoch <alriddoch@googlemail.com>
* data/characters.xml, data/mason.xml, data/terrain.xml,
	  rulesets/mason/define_world.py: Remove instance attribute values
	  in favor of class defaults for stake.
2008-09-08 20:50:04 +00:00
Al Riddoch
4cf4d75741 2008-09-08 Al Riddoch <alriddoch@googlemail.com>
* data/basic.xml, data/characters.xml, data/plants.xml: Remove some
	  obsolete classes which have no role in the world, and no media
	  to represent them.
2008-09-08 16:43:36 +00:00
Al Riddoch
d83aad9062 2008-08-27 Al Riddoch <alriddoch@googlemail.com>
* server/ScriptFactory.cpp: Simplify way the name of a class
	  is determined by removing the hack to upercase the type name.

	* server/EntityFactory.cpp: Break python type name on the last
	  . making the name of the class independant of the Atlas type.

	* data/basic.xml, data/buildings.xml, data/characters.xml,
	  data/clothing.xml, data/mason.xml, data/plants.xml,
	  data/tools.xml, data/weapons.xml, data/werewolf.xml: Modify all
	  python type names in the classes to include the name of the class
	  explicitly.
2008-08-27 16:42:38 +00:00
Al Riddoch
1f0c5d1f4d 2007-12-03 Al Riddoch <alriddoch@zepler.org>
* data/animals.xml: Give all the animals BIOMASS.

	* data/characters.xml: Add mass to some character classes that were
	  missing it.

	* rulesets/Character.cpp, rulesets/Character.h, rulesets/Entity.cpp,
	  rulesets/Entity.h, rulesets/Plant.cpp, rulesets/Statistics.cpp,
	  rulesets/World.cpp, server/CorePropertyManager.cpp,
	  server/Persistor.cpp, server/Persistor_impl.h,
	  server/Restorer_impl.h: Remove the hard coded mass property from
	  Entity.

	* rulesets/mason/world/statistics/Statistics.py: Fix scripts which
	  assume entities will have mass.
2007-12-03 23:18:51 +00:00
Al Riddoch
0f3a86c9ce 2007-10-18 Al Riddoch <alriddoch@zepler.org>
* data/characters.xml, data/basic.xml: Move some character types
	  from basic into their own rules file.
2007-10-18 20:49:03 +00:00
Al Riddoch
2cd7920ce8 2007-10-18 Al Riddoch <alriddoch@zepler.org>
* data/characters.xml, data/mason.xml: Move all the character types
	  from mason into their own rules file.
2007-10-18 16:25:34 +00:00