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.
* 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.
* rulesets/LocatedEntity.cpp, rulesets/LocatedEntity.h: Make all the
property access functions that should never be used to modify a
property const. Remove requirePropertyClass() as it pretty much
can't be const.
* rulesets/Entity.cpp, rulesets/Entity.h: Make overriden
getProperty() const as it is in the base class. Add new
property access functions for code that needs to modify the
properties which ensures class properties never get modified
through the Entity interface.
* rulesets/Character.cpp, rulesets/Plant.cpp, rulesets/Py_Thing.cpp,
rulesets/TerrainModProperty.cpp, server/CorePropertyManager.cpp:
Change all the code that accesses properties to use the right
functions.
* rulesets/LocatedEntity.h: Rename some member functions and templates
to make more sense and be consistent.
* rulesets/Character.cpp, rulesets/Plant.cpp,
server/CorePropertyManager.cpp: Fix the code to use the new names.
* server/CorePropertyManager.cpp, server/CorePropertyManager.h:
Re-work the property manager to always create a property,
using closest match specialisations of the template where
possible. Replace all factories which did create DynamicProperty
objects with Property objects instead, as they are now functionaly
the same.