30 #ifndef ERIS_TERRAINMODOBSERVER_H 31 #define ERIS_TERRAINMODOBSERVER_H 33 #include <sigc++/signal.h> 34 #include <Eris/Entity.h> 42 class TerrainModTranslator;
71 virtual bool init(
bool alwaysObserve =
false);
77 Mercator::TerrainMod* getMod()
const;
114 virtual void onModChanged();
119 virtual void onModDeleted();
125 void attributeChanged(
const Atlas::Message::Element& attributeValue);
136 void entity_Deleted();
142 virtual void observeEntity();
149 virtual bool parseMod();
155 virtual void reparseMod();
Entity * mEntity
The owner of this modifier.
Definition: TerrainModObserver.h:103
TerrainModTranslator * mInnerMod
The inner terrain mod instance which holds the actual Mercator::TerrainMod instance and handles the p...
Definition: TerrainModObserver.h:162
Entity::AttrChangedSlot mAttrChangedSlot
Slot used to listen for changes to attributes in the Entity to which this mod belongs to...
Definition: TerrainModObserver.h:108
Definition: TerrainModObserver.h:36
sigc::slot< void, const Atlas::Message::Element & > AttrChangedSlot
A slot which can be used for receiving attribute update signals.
Definition: Entity.h:106
Definition: Account.cpp:33
sigc::signal< void > ModChanged
Emitted whenever the modifier is changed or moved.
Definition: TerrainModObserver.h:84
sigc::signal< void > ModDeleted
Emitted just before the entity owning this mod is deleted.
Definition: TerrainModObserver.h:90
Entity is a concrete (instantiable) class representing one game entity.
Definition: Entity.h:57
Base class for all terrain mod specific classes.This is not meant to be used directly by anything els...
Definition: TerrainModTranslator.h:48
Wrapper class that envelopes a Mercator::TerrainMod. This class is mainly responsible for parsing atl...
Definition: TerrainModObserver.h:52