Commit graph

8 commits

Author SHA1 Message Date
Erik Ogenvik
1415c3dbaa Fixed bug with spawn default data.
The first entity created on the spawn would actually alter the default
data of the spawn.
2015-05-02 23:15:14 +02:00
Erik Ogenvik
328ba969fe Make spawns use entities and archetypes.
There's no reason to use the hacked in "contains" feature for creating
inventory. Instead we can rely on the Archtype features. Any entity
declaration for which we also want inventory created should use an
archetype.
The change is that the "contains" and "character_types" attributes are
removed. Instead there's a "entities" attribute, which is a map. The
keys are the names of the entities as seen to the client, and the values
are the entity specifications.
2013-11-16 22:55:47 +01:00
Erik Ogenvik
edc5fd604b Added property for respawning entity.
The "respawning" property makes an entity respawn instead of being
deleted. It intercepts the Delete op and instead of deleting the entity
it moves it to the specified spawn point.
A typical use case of this is to place the property on any user
controlled entity, thus making sure that it's never deleted and istead
respawned when killed or defeated.
2013-11-16 21:05:45 +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
4a9c7078f7 Refactor to use LocatedEntity as base class
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.
2013-01-17 10:17:07 +00:00
Alistair Riddoch
309905fedf Extend Spawn interface to support richer Atlas descriptions. 2009-12-30 11:29:12 +00:00
Alistair Riddoch
7660afe705 Modify the interface of the Spawn base class for postprocessing. 2009-12-30 11:12:33 +00:00
Alistair Riddoch
1edcf786c6 Add concept classes for handling spawn points. 2009-12-30 01:32:31 +00:00