This is needed in order for types to work. Note that we currently can't
handle dynamically changing rules; we get all rules up front. This will
have to do for now though.
These ops are more canonical than trying to fudge it with the
undocumented and unclear "thought" operation.
The "Commune" op is used when asking an entity about its thoughts, while
the "Think" op is used when sending new thoughts.
* common/Monitors.cpp, common/Monitors.h: Add a new class to handle
storing key value pairs useful in monitoring the state of a server.
* server/HttpCache.cpp, server/HttpCache.h: Add a function argument
to allow the content type to be controlled in the header.
Expose the Monitors class under /monitors URL.
* client/BaseClient.cpp, common/BaseEntity.cpp, common/BaseEntity.h,
common/Identified.cpp, common/Identified.h, common/Makefile.am,
common/OOGThing.cpp, common/OOGThing.h, common/OperationRouter.cpp,
common/OperationRouter.h, rulesets/Character.h, rulesets/Entity.h,
rulesets/LocatedEntity.cpp, rulesets/LocatedEntity.h,
server/Account.cpp, server/Account.h, server/Admin.cpp,
server/CommClient.cpp, server/CommClient.h, server/Connection.cpp,
server/Connection.h, server/ExternalMind.cpp, server/ExternalMind.h,
server/ExternalProperty.cpp, server/ExternalProperty.h,
server/Lobby.cpp, server/Lobby.h, server/Master.cpp, server/Master.h,
server/Peer.cpp, server/Peer.h, server/ServerRouting.cpp,
server/ServerRouting.h, server/SlaveClientConnection.cpp,
server/SlaveClientConnection.h: Factor out the more pointless base
classes, in favor of simple interface. Move destroyed signal to
Entity, which is the only place it is needed.
* common/OperationRouter.cpp, common/OperationRouter.h: Interface
class for objects when can handle or route operations.
* common/BaseEntity.h, common/BaseEntity.cpp: Remove standard
implementation of operation handler, forcing class to provide
more specific implementations.
* rulesets/LocatedEntity.h, rulesets/LocatedEntity.cpp: Add an
implementation of the OperationRouter interface, suitable for
IG operations.
* server/ServerRouting.h, server/Peer.cpp, server/Peer.h,
rulesets/MemEntity.h: Add placeholder OperationRouter
implementations.
* server/Connection.cpp: Update OperationRouter implementation to
be better suited.
* server/Account.cpp, server/Account.h: Implement OperationRouter
for accounts.
* common/TypeNode.h, common/TypeNode.cpp: Move TypeNode into
its own files.
* common/Makefile.am, common/inheritance.cpp, common/inheritance.h:
Add the new files to the build and remove the old implementation.
* client/Py_CreatorClient.cpp, rulesets/Character.cpp,
rulesets/Entity.cpp, rulesets/MemMap.cpp,
rulesets/MindFactory.cpp, rulesets/Py_Mind.cpp,
rulesets/Py_Thing.cpp, rulesets/Stackable.cpp,
server/WorldRouter.cpp: Fix up the includes for all code that
uses TypeNode.
* common/terrain_utils.h, common/Makefile.am: Remove the persistence
code used to save terrain data.
* common/Database.cpp, common/Database.h: Remove the object
relational API for persisting entity data, and put the code
beyond use.
* data/basic.xml: Provide entirely data driven definitions for Cut
and Chop ops.
* common/Chop.h, common/Cut.h, common/Makefile.am, common/custom.cpp,
common/operations.cpp, common/types.h, tests/Makefile.am,
tests/Tasktest.cpp, tests/allOperations.h,
tests/inheritancetest.cpp: Remove the hard coded Cut and Chop op
definitions completely from the build.
* common/Makefile.am: Fix include directories to include the top
of the build directory in non relocatable builds, so that out
of directory non relocatable builds work.
* server/Makefile.am: Exclude buildid.cpp from distributed sources
and from its own deps to fix some warnings and errors.
* common/Use.h, common/Wield.h, common/Generic.h: Mark unused files
as removed from the build.
* common/Attack.h, common/Burn.h, common/Chop.h, common/Connect.h,
common/Cut.h, common/Delve.h, common/Dig.h, common/Drop.h,
common/Eat.h, common/Monitor.h, common/Mow.h, common/Nourish.h,
common/Pickup.h, common/Setup.h, common/Tick.h, common/Unseen.h,
common/Update.h: Add class documentation to all the custom
properties.
* common/DynamicProperty.h, client/ClientPropertyManager.h,
server/CorePropertyManager.h, server/PersistantThingFactory.h,
server/ScriptFactory.h, server/WorldRouter.cpp: Add documentation
to some places where it is missing.
* common/DynamicProperty.cpp, common/DynamicProperty.h,
common/DynamicProperty_impl.h: New property class for handling
properties or attributes added on the fly which need to store the
value.
* common/PropertyFactory.cpp, common/PropertyFactory_impl.h,
server/CorePropertyManager.cpp: Use DynamicProperty in the
property factories for properties created on the fly.
* common/PropertyFactory.cpp, common/PropertyFactory.h,
common/PropertyFactory_impl.h, common/PropertyManager.cpp,
common/PropertyManager.h: Add new classes to automate the
creation of property objects for known property types.
* server/CorePropertyManager.cpp, server/CorePropertyManager.h:
Manager object that will coordinate creating properties
when they are added to entities.
* common/debug.h, common/debug.cpp: Add interface template for a
function which dumps a representation of a type to stdout, and
add a specialisation for dumping Atlas message data.
* common/Pickup.h, common/Drop.h, common/custom.cpp,
common/operations.cpp, common/types.h: Add and install two new
op types for Pickup and Drop.
* rulesets/Thing.cpp: Send sights of Pickup and Drop when characters
perform this actions implicitly with move ops.
* common/Database.cpp, common/Database.h, common/id.h, common/id.cpp:
Make newId() functions return the integer value.
* common/newid.cpp: Break newId out into its own file, and make
it handle whether or not the database should issue IDs.
* server/Connection.cpp, server/Persistance.cpp,
server/WorldRouter.cpp, server/server.cpp: Simply generating IDs
by just using the newId() function, and use its return value.