2001-10-06 16:52:02 +00:00
|
|
|
# SUBDIRS = astronomy skills
|
2001-03-07 11:49:43 +00:00
|
|
|
|
2011-08-16 08:34:18 +01:00
|
|
|
AM_CPPFLAGS = -I$(top_srcdir) -I${top_builddir}
|
2003-06-24 09:53:38 +00:00
|
|
|
|
2013-11-15 21:14:47 +01:00
|
|
|
RULESETS = basic/mind mason minimal mars deeds
|
2007-05-07 03:03:37 +00:00
|
|
|
|
2008-07-10 13:11:40 +00:00
|
|
|
moduledir = $(datadir)/cyphesis/scripts/cyphesis
|
2008-09-17 16:43:51 +00:00
|
|
|
dist_module_DATA = basic/world/objects/Thing.py \
|
2007-06-19 13:42:12 +00:00
|
|
|
basic/world/probability.py \
|
2008-10-09 15:38:22 +00:00
|
|
|
basic/world/objects/__init__.py \
|
2007-06-19 13:42:12 +00:00
|
|
|
basic/editor.py
|
2007-06-18 13:19:52 +00:00
|
|
|
|
2001-04-10 19:05:14 +00:00
|
|
|
noinst_LIBRARIES = librulesetbase.a librulesetmind.a librulesetentity.a \
|
2014-07-23 12:46:45 -04:00
|
|
|
libscriptpython.a libentityfilter.a
|
2001-04-05 18:01:12 +00:00
|
|
|
|
2007-12-02 19:20:55 +00:00
|
|
|
librulesetbase_a_SOURCES = LocatedEntity.cpp LocatedEntity.h \
|
2004-11-02 17:52:19 +00:00
|
|
|
EntityProperties.cpp \
|
2007-01-03 21:55:30 +00:00
|
|
|
AtlasProperties.cpp AtlasProperties.h \
|
2004-12-26 23:48:32 +00:00
|
|
|
Container.cpp Container.h \
|
2003-04-24 13:38:43 +00:00
|
|
|
Script.cpp Script.h
|
2000-08-21 11:31:18 +00:00
|
|
|
|
2009-05-12 23:30:03 +01:00
|
|
|
librulesetentity_a_SOURCES = \
|
|
|
|
|
Entity.cpp Entity.h \
|
|
|
|
|
Thing.cpp Thing.h \
|
2001-04-16 16:26:44 +00:00
|
|
|
World.cpp World.h \
|
2001-04-10 19:05:14 +00:00
|
|
|
Character.cpp Character.h \
|
|
|
|
|
Creator.cpp Creator.h \
|
|
|
|
|
Plant.cpp Plant.h \
|
|
|
|
|
Stackable.cpp Stackable.h \
|
2005-04-20 01:03:36 +00:00
|
|
|
Motion.cpp Motion.h \
|
2009-05-08 15:48:35 +01:00
|
|
|
Domain.cpp Domain.h \
|
2010-08-10 00:54:25 +01:00
|
|
|
BulletDomain.cpp BulletDomain.h \
|
2012-11-23 16:11:21 +00:00
|
|
|
ExternalMind.cpp ExternalMind.h \
|
2001-04-11 14:34:15 +00:00
|
|
|
Movement.cpp Movement.h \
|
2004-11-02 17:52:19 +00:00
|
|
|
Pedestrian.cpp Pedestrian.h \
|
2006-12-04 23:06:57 +00:00
|
|
|
EntityProperty.cpp EntityProperty.h \
|
2006-12-29 00:02:31 +00:00
|
|
|
OutfitProperty.cpp OutfitProperty.h \
|
2004-11-02 17:52:19 +00:00
|
|
|
LineProperty.cpp LineProperty.h \
|
2005-04-15 17:04:51 +00:00
|
|
|
AreaProperty.cpp AreaProperty.h \
|
2004-12-28 Al Riddoch <alriddoch@zepler.org>
* common/OOGThing.cpp, common/Property.cpp, common/Property.h,
common/Property_impl.h, common/inheritance.h, common/operations.cpp,
rulesets/World.cpp: Update some comments.
* rulesets/Task.h, rulesets/Task.cpp, tests/Tasktest.cpp,
rulesets/Fell.h, rulesets/Fell.cpp: New Task interface for
tasks which take a while to complete. Sample implentation provided
in the form of a Fell task for felling trees.
* rulesets/Character.cpp, rulesets/Character.h: Try out Task
implementation with Fell.
2004-12-28 02:14:17 +00:00
|
|
|
TerrainProperty.cpp TerrainProperty.h \
|
2012-01-07 16:32:19 +00:00
|
|
|
TerrainEffectorProperty.cpp \
|
|
|
|
|
TerrainEffectorProperty.h \
|
2008-08-14 00:03:12 +00:00
|
|
|
TerrainModProperty.cpp TerrainModProperty.h \
|
2011-01-06 19:49:24 +00:00
|
|
|
TerrainModTranslator.cpp TerrainModTranslator.h \
|
2005-12-14 17:16:21 +00:00
|
|
|
CalendarProperty.cpp CalendarProperty.h \
|
2007-01-27 16:35:36 +00:00
|
|
|
SolidProperty.cpp SolidProperty.h \
|
2007-11-29 01:13:27 +00:00
|
|
|
StatusProperty.cpp StatusProperty.h \
|
2008-09-08 Al Riddoch <alriddoch@googlemail.com>
* rulesets/ActivePropertyFactory_impl.h: Re-work the active property
factories so they just pass handler information to the property
classes rather than installing it themselves, so the property
can now handle installing the handlers each time they are installed
on an entity, making class default properties work.
* client/ClientPropertyManager.cpp, client/ClientPropertyManager.h,
common/PropertyFactory.h, common/PropertyFactory_impl.h,
common/PropertyManager.h, rulesets/ActivePropertyFactory.h,
server/CorePropertyManager.cpp, server/CorePropertyManager.h:
Modify the property manager and property factory interfaces so they
do not take a pointer to the owner, as this is never required any
more.
* rulesets/Character.cpp, rulesets/Entity.cpp: Modify code that uses
property managers to use the new interface.
* rulesets/SolidProperty.cpp, rulesets/SolidProperty.h: Make use of
the bool flag to implement this, preventing it from being tied to
having a pointer to the owner at creation time.
* rulesets/StatusProperty.cpp, rulesets/StatusProperty.h: Remove
the need for an owner pointer at construction time by using the
apply method.
* rulesets/TerrainModProperty.cpp, rulesets/TerrainModProperty.h:
Use new MultiActivePropertyManager and install method to handle
installing handlers rather than relying on the factory to do it.
* server/CorePropertyManager.cpp: Change many of the property
factories now that none get get an owner pointer.
* server/EntityFactory.cpp: Set up default properties on all type
nodes when a new class is installed, and don't apply instance
properties based on class defaults, relying on class properties.
* rulesets/Entity.cpp: Remove hard coded BBox property now that the
functionality is handled by a more special property.
2008-09-08 00:17:08 +00:00
|
|
|
BBoxProperty.cpp BBoxProperty.h \
|
2008-09-09 18:06:28 +00:00
|
|
|
TransientProperty.cpp TransientProperty.h \
|
2008-09-12 01:33:39 +00:00
|
|
|
InternalProperties.cpp InternalProperties.h \
|
2005-12-30 Al Riddoch <alriddoch@zepler.org>
* rulesets/Character.cpp, rulesets/StatisticsProperty.h,
rulesets/StatisticsProperty.cpp: Add a property handler for
statistics.
* rulesets/Character.cpp: When setting task, check if an existing
task needs to be cleared first. When clearing a task, check
whether a task exists or not.
* rulesets/Character.cpp: When initiating combat task from task
factory, check to see if the task is successfully created before
using it.
* rulesets/Py_Property.cpp, rulesets/Py_Property.h: New python wrapper
class for entity properties.
* rulesets/Py_Mind.cpp: Re-work getattr logic to make it clearer.
* rulesets/Py_Object.cpp: Return Py_None when an Atlas Element cannot
be converted to python. This ensures that this function never returns
null.
* rulesets/Py_Statistics.cpp: Add temporary handlers for hardcoded
statistics for "attack", "defence", and "strength".
* rulesets/Py_Task.cpp: Add wrappers for methods Task.irrelevant and
Task.obsolete, as these are now required in combat scripts.
* rulesets/Py_Task.h: Fix the PyTask_Check macro, which was miscoded.
* rulesets/Py_Thing.cpp: Add wrapper for Entity.send_world so that
scripts can channel ops through entities.
* rulesets/Py_Thing.h, rulesets/Py_Thing.cpp: Add an addition structure
for directlty wrapping Character in a type safe way. Add method
structure pointer to Entity and Character wrappers so that
the same getattr method is used for both. Add new method table for
Character including wrappers for set_task and clear_task, allowing
task scripts to add themselves and remove themselves from
characters. Modify wrapEntity() to ensure that Character entities
get the right wrapper.
* rulesets/Py_Thing.cpp: Re-work getattr code so that properties and
soft attributes are checked individually, rather than in a single
call to Entity.get. Use new python property wrappers to wrap
properties explicitly if required rather than converting to Atlas
then to generic Python data.
* rulesets/TerrainProperty.h: Fix incorrect class description in
documentation.
* rulesets/mason/world/tasks/Combat.py: Complete implementation of
simple example combat.
* server/TaskFactory.cpp: Remove debug output.
2005-12-30 18:02:40 +00:00
|
|
|
StatisticsProperty.cpp StatisticsProperty.h \
|
2009-06-17 19:32:57 +01:00
|
|
|
TasksProperty.cpp TasksProperty.h \
|
2009-12-29 17:49:06 +00:00
|
|
|
SpawnProperty.cpp SpawnProperty.h \
|
2011-01-07 22:39:30 +00:00
|
|
|
VisibilityProperty.cpp VisibilityProperty.h \
|
2012-11-23 23:58:56 +00:00
|
|
|
ExternalProperty.cpp ExternalProperty.h \
|
2013-01-09 22:26:12 +00:00
|
|
|
BiomassProperty.cpp BiomassProperty.h \
|
2013-01-09 22:48:40 +00:00
|
|
|
BurnSpeedProperty.cpp BurnSpeedProperty.h \
|
2013-01-10 10:07:44 +00:00
|
|
|
DecaysProperty.cpp DecaysProperty.h \
|
2004-12-28 Al Riddoch <alriddoch@zepler.org>
* common/OOGThing.cpp, common/Property.cpp, common/Property.h,
common/Property_impl.h, common/inheritance.h, common/operations.cpp,
rulesets/World.cpp: Update some comments.
* rulesets/Task.h, rulesets/Task.cpp, tests/Tasktest.cpp,
rulesets/Fell.h, rulesets/Fell.cpp: New Task interface for
tasks which take a while to complete. Sample implentation provided
in the form of a Fell task for felling trees.
* rulesets/Character.cpp, rulesets/Character.h: Try out Task
implementation with Fell.
2004-12-28 02:14:17 +00:00
|
|
|
Task.cpp Task.h \
|
2008-11-30 01:03:26 +00:00
|
|
|
ArithmeticScript.cpp ArithmeticScript.h \
|
2010-02-15 23:33:38 +01:00
|
|
|
ArithmeticFactory.cpp ArithmeticFactory.h \
|
2013-10-02 15:46:32 +02:00
|
|
|
SuspendedProperty.cpp SuspendedProperty.h \
|
2013-11-15 23:30:34 +01:00
|
|
|
SpawnerProperty.cpp SpawnerProperty.h \
|
2013-11-16 21:05:45 +01:00
|
|
|
ImmortalProperty.cpp ImmortalProperty.h \
|
2014-09-06 20:26:15 +02:00
|
|
|
RespawningProperty.cpp RespawningProperty.h \
|
2014-09-13 10:34:30 +02:00
|
|
|
DefaultLocationProperty.cpp DefaultLocationProperty.h \
|
2014-08-25 21:51:03 +02:00
|
|
|
DomainProperty.cpp DomainProperty.h \
|
2014-09-24 22:00:54 +02:00
|
|
|
LimboProperty.cpp LimboProperty.h \
|
|
|
|
|
PhysicalDomain.cpp PhysicalDomain.h \
|
2013-08-13 21:02:43 +02:00
|
|
|
VoidDomain.cpp VoidDomain.h \
|
2016-06-17 22:25:38 +02:00
|
|
|
ProxyMind.cpp ProxyMind.h \
|
2015-07-09 22:58:54 +02:00
|
|
|
InventoryDomain.cpp InventoryDomain.h \
|
2016-01-19 15:42:05 +01:00
|
|
|
TransformsProperty.cpp TransformsProperty.h \
|
|
|
|
|
ModeProperty.cpp ModeProperty.h \
|
2016-01-20 16:50:17 +01:00
|
|
|
ModeSpecProperty.cpp ModeSpecProperty.h \
|
2016-01-21 09:26:43 +01:00
|
|
|
ForcesProperty.cpp ForcesProperty.h \
|
|
|
|
|
PropelProperty.cpp PropelProperty.h
|
2008-11-30 01:03:26 +00:00
|
|
|
|
2014-07-23 12:46:45 -04:00
|
|
|
libentityfilter_a_SOURCES = entityfilter/Filter.cpp entityfilter/Filter.h \
|
|
|
|
|
entityfilter/ParserDefinitions.h \
|
2014-09-05 19:30:05 -04:00
|
|
|
entityfilter/Providers.cpp entityfilter/Providers.h \
|
|
|
|
|
entityfilter/Predicates.cpp entityfilter/Predicates.h
|
2001-04-10 19:05:14 +00:00
|
|
|
|
2004-12-26 23:48:32 +00:00
|
|
|
librulesetmind_a_SOURCES = BaseMind.cpp BaseMind.h \
|
|
|
|
|
MindFactory.cpp MindFactory.h \
|
2011-12-15 19:22:35 +00:00
|
|
|
MindProperty.cpp MindProperty.h \
|
2004-12-26 23:48:32 +00:00
|
|
|
MemEntity.cpp MemEntity.h \
|
2015-09-26 20:37:31 +02:00
|
|
|
MemMap.cpp MemMap.h \
|
|
|
|
|
mind/AwareMind.cpp mind/AwareMind.h mind/AwareMindFactory.cpp mind/AwareMindFactory.h \
|
|
|
|
|
mind/AwarenessStore.cpp mind/AwarenessStore.h mind/AwarenessStoreProvider.cpp \
|
|
|
|
|
mind/AwarenessStoreProvider.h mind/SharedTerrain.cpp mind/SharedTerrain.h
|
2004-12-26 23:48:32 +00:00
|
|
|
|
2009-05-27 14:10:26 +01:00
|
|
|
libscriptpython_a_SOURCES = Py_Message.cpp Py_Message.h \
|
2001-04-10 19:05:14 +00:00
|
|
|
Py_Operation.cpp Py_Operation.h \
|
2005-09-05 23:47:04 +00:00
|
|
|
Py_RootEntity.cpp Py_RootEntity.h \
|
2001-04-10 19:05:14 +00:00
|
|
|
Py_Oplist.cpp Py_Oplist.h \
|
2004-09-20 Al Riddoch <alriddoch@zepler.org>
* physics/Vector3D.h, physics/Vector3D.cpp, modules/Location.h,
modules/Location.cpp: Convert to using WFMath::Point instead of
WFMath::Vector for position.
* physics/Collision.h, physics/Collision.cpp: Update collision code
to use new pos type.
* rulesets/Py_Point3D.h, rulesets/Py_Point3D.cpp: New python
wrappers for WFMath::Point.
* rulesets/Py_Location.cpp, rulesets/Py_Vector3D.cpp,
rulesets/Python_API.cpp:
Update python wrappers to take into account new pos type.
Ensure that only apropriate functionality is available for
point and vector.
* rulesets/Character.cpp, rulesets/Entity.cpp, rulesets/Entity.h,
rulesets/Line.cpp, rulesets/Movement.cpp, rulesets/Movement.h,
rulesets/Pedestrian.cpp, rulesets/Pedestrian.h,
rulesets/Plant.cpp, rulesets/Thing.cpp, rulesets/World.cpp,
server/EntityFactory.cpp, server/WorldRouter.cpp,
server/WorldRouter.h: Update the rest of the code for new pos
type, converting all places where entity parenting is changed
to use WFMath toParentCoords() and toLocalCoords() methods,
so that orientation is handled correctly.
* tests/transformtest.cpp: New test to ensure that toParentCoords()
and toLocalCoords() perform as expected.
* tests/Creatortest.cpp, tests/Locationtest.cpp, tests/Worldtest.cpp,
tests/collisiontest.cpp, tests/emergencetest.cpp:
Update the rest of the tests.
2004-09-20 10:16:04 +00:00
|
|
|
Py_Vector3D.cpp Py_Vector3D.h \
|
|
|
|
|
Py_Point3D.cpp Py_Point3D.h \
|
2001-04-10 19:05:14 +00:00
|
|
|
Py_Thing.cpp Py_Thing.h \
|
2005-12-26 18:49:14 +00:00
|
|
|
Py_EntityWrapper.h \
|
2014-07-21 19:02:49 -04:00
|
|
|
Py_Filter.cpp Py_Filter.h \
|
2001-04-10 19:05:14 +00:00
|
|
|
Py_Map.cpp Py_Map.h \
|
2002-03-03 00:48:28 +00:00
|
|
|
Py_Quaternion.cpp Py_Quaternion.h \
|
* physics/BBox.h, rulesets/Py_BBox.h, rulesets/Py_BBox.cpp:
Added direct support for new format bounding boxes.
* modules/Location.cpp, modules/Location.h, physics/Vector3D.h,
rulesets/Character.cpp, rulesets/Creator.cpp, rulesets/Entity.cpp,
rulesets/Movement.cpp, rulesets/Plant.cpp, rulesets/Py_Location.cpp:
Switched over to using new format bounding boxes, and re-wrote
collision code for this format, making it clearer and more
efficient at the same time.
Al Riddoch <alriddoch@zepler.org>
2001-11-30 14:35:59 +00:00
|
|
|
Py_BBox.cpp Py_BBox.h \
|
2001-04-10 19:05:14 +00:00
|
|
|
Py_WorldTime.cpp Py_WorldTime.h \
|
|
|
|
|
Py_World.cpp Py_World.h \
|
|
|
|
|
Py_Location.cpp Py_Location.h \
|
2005-12-03 03:07:30 +00:00
|
|
|
Py_Task.cpp Py_Task.h \
|
2011-01-13 19:32:24 +00:00
|
|
|
Py_Shape.cpp Py_Shape.h \
|
2005-12-30 Al Riddoch <alriddoch@zepler.org>
* rulesets/Character.cpp, rulesets/StatisticsProperty.h,
rulesets/StatisticsProperty.cpp: Add a property handler for
statistics.
* rulesets/Character.cpp: When setting task, check if an existing
task needs to be cleared first. When clearing a task, check
whether a task exists or not.
* rulesets/Character.cpp: When initiating combat task from task
factory, check to see if the task is successfully created before
using it.
* rulesets/Py_Property.cpp, rulesets/Py_Property.h: New python wrapper
class for entity properties.
* rulesets/Py_Mind.cpp: Re-work getattr logic to make it clearer.
* rulesets/Py_Object.cpp: Return Py_None when an Atlas Element cannot
be converted to python. This ensures that this function never returns
null.
* rulesets/Py_Statistics.cpp: Add temporary handlers for hardcoded
statistics for "attack", "defence", and "strength".
* rulesets/Py_Task.cpp: Add wrappers for methods Task.irrelevant and
Task.obsolete, as these are now required in combat scripts.
* rulesets/Py_Task.h: Fix the PyTask_Check macro, which was miscoded.
* rulesets/Py_Thing.cpp: Add wrapper for Entity.send_world so that
scripts can channel ops through entities.
* rulesets/Py_Thing.h, rulesets/Py_Thing.cpp: Add an addition structure
for directlty wrapping Character in a type safe way. Add method
structure pointer to Entity and Character wrappers so that
the same getattr method is used for both. Add new method table for
Character including wrappers for set_task and clear_task, allowing
task scripts to add themselves and remove themselves from
characters. Modify wrapEntity() to ensure that Character entities
get the right wrapper.
* rulesets/Py_Thing.cpp: Re-work getattr code so that properties and
soft attributes are checked individually, rather than in a single
call to Entity.get. Use new python property wrappers to wrap
properties explicitly if required rather than converting to Atlas
then to generic Python data.
* rulesets/TerrainProperty.h: Fix incorrect class description in
documentation.
* rulesets/mason/world/tasks/Combat.py: Complete implementation of
simple example combat.
* server/TaskFactory.cpp: Remove debug output.
2005-12-30 18:02:40 +00:00
|
|
|
Py_Property.cpp Py_Property.h \
|
2010-09-18 19:59:40 +01:00
|
|
|
Py_TerrainModProperty.cpp \
|
2007-07-04 16:42:10 +00:00
|
|
|
Py_TerrainProperty.cpp \
|
2001-04-10 19:05:14 +00:00
|
|
|
Python_API.cpp Python_API.h \
|
2005-05-14 23:02:02 +00:00
|
|
|
Python_Script_Utils.h \
|
2011-11-08 18:54:10 +00:00
|
|
|
PythonClass.cpp PythonClass.h \
|
2009-01-31 04:08:54 +00:00
|
|
|
PythonContext.cpp PythonContext.h \
|
2005-12-11 20:33:43 +00:00
|
|
|
PythonWrapper.cpp PythonWrapper.h \
|
2009-03-22 15:58:06 +00:00
|
|
|
PythonEntityScript.cpp PythonEntityScript.h \
|
2010-07-13 16:23:46 +01:00
|
|
|
PythonArithmeticScript.cpp PythonArithmeticScript.h \
|
2011-12-15 18:26:37 +00:00
|
|
|
PythonArithmeticFactory.cpp \
|
|
|
|
|
PythonArithmeticFactory.h \
|
|
|
|
|
PythonScriptFactory.cpp PythonScriptFactory.h \
|
|
|
|
|
PythonScriptFactory_impl.h
|
2000-12-12 19:02:30 +00:00
|
|
|
|
2000-12-17 22:21:43 +00:00
|
|
|
dist-hook:
|
2007-05-07 03:03:37 +00:00
|
|
|
(cd $(top_srcdir)/rulesets && tar cf - `find $(RULESETS) -name \*.py`) | (cd $(distdir) && tar xf -)
|
2000-12-17 22:21:43 +00:00
|
|
|
|
2000-12-12 19:02:30 +00:00
|
|
|
install-data-local:
|
2007-05-07 17:44:33 +00:00
|
|
|
(cd $(top_srcdir)/rulesets && find $(RULESETS) -type d ! -name CVS | xargs -I PYRDIR $(install_sh) -d $(DESTDIR)$(datadir)/cyphesis/rulesets/PYRDIR)
|
2007-05-07 18:02:47 +00:00
|
|
|
(cd $(top_srcdir)/rulesets && tar cf - $(TAR_PERM_FLAGS) `find $(RULESETS) -name \*.py`) | (cd $(DESTDIR)$(datadir)/cyphesis/rulesets && tar xpf -)
|
2007-07-06 00:27:45 +00:00
|
|
|
rm -f $(DESTDIR)$(datadir)/cyphesis/rulesets/basic/world/__init__.py
|
|
|
|
|
rm -f $(DESTDIR)$(datadir)/cyphesis/rulesets/basic/world/__init__.py?
|
2004-06-13 12:09:14 +00:00
|
|
|
|
|
|
|
|
uninstall-local:
|
2007-05-07 03:03:37 +00:00
|
|
|
(cd $(top_srcdir)/rulesets && find $(RULESETS) -name \*.py | xargs -I PYRFILE rm -f $(DESTDIR)$(datadir)/cyphesis/rulesets/PYRFILE)
|
2007-05-07 17:44:33 +00:00
|
|
|
find $(DESTDIR)$(datadir)/cyphesis -type d -delete
|