FIFE  6e1afdbeda11afe9ac53e6023a4be96ef88f1dc6
FIFE::LayerChangeListener Class Referenceabstract

Listener interface for changes happening on a layer. More...

#include <layer.h>

+ Inheritance diagram for FIFE::LayerChangeListener:
+ Collaboration diagram for FIFE::LayerChangeListener:

Public Member Functions

virtual ~LayerChangeListener ()
 
virtual void onLayerChanged (Layer *layer, std::vector< Instance * > &changedInstances)=0
 Called when some instance is changed on layer. More...
 
virtual void onInstanceCreate (Layer *layer, Instance *instance)=0
 Called when some instance gets created on layer. More...
 
virtual void onInstanceDelete (Layer *layer, Instance *instance)=0
 Called when some instance gets deleted on layer. More...
 

Detailed Description

Listener interface for changes happening on a layer.

Definition at line 71 of file layer.h.

Constructor & Destructor Documentation

virtual FIFE::LayerChangeListener::~LayerChangeListener ( )
inlinevirtual

Definition at line 73 of file layer.h.

References onInstanceCreate(), onInstanceDelete(), and onLayerChanged().

Member Function Documentation

virtual void FIFE::LayerChangeListener::onInstanceCreate ( Layer layer,
Instance instance 
)
pure virtual

Called when some instance gets created on layer.

Parameters
layerwhere change occurred
instancewhich got created

Implemented in FIFE::CellCacheChangeListener, and FIFE::CacheLayerChangeListener.

Referenced by ~LayerChangeListener().

+ Here is the caller graph for this function:

virtual void FIFE::LayerChangeListener::onInstanceDelete ( Layer layer,
Instance instance 
)
pure virtual

Called when some instance gets deleted on layer.

Parameters
layerwhere change occurred
instancewhich will be deleted
Note
right after this call, instance actually gets deleted!

Implemented in FIFE::CellCacheChangeListener, and FIFE::CacheLayerChangeListener.

Referenced by ~LayerChangeListener().

+ Here is the caller graph for this function:

virtual void FIFE::LayerChangeListener::onLayerChanged ( Layer layer,
std::vector< Instance * > &  changedInstances 
)
pure virtual

Called when some instance is changed on layer.

See also
InstanceChangeType
Parameters
layerwhere change occurred
changedInstanceslist of instances containing some changes
Note
Does not report creations and deletions

Implemented in FIFE::CacheLayerChangeListener, and FIFE::CellCacheChangeListener.

Referenced by ~LayerChangeListener().

+ Here is the caller graph for this function:


The documentation for this class was generated from the following file: