FIFE  6e1afdbeda11afe9ac53e6023a4be96ef88f1dc6
FIFE::CacheLayerChangeListener Class Reference
+ Inheritance diagram for FIFE::CacheLayerChangeListener:
+ Collaboration diagram for FIFE::CacheLayerChangeListener:

Public Member Functions

 CacheLayerChangeListener (LayerCache *cache)
 
virtual ~CacheLayerChangeListener ()
 
virtual void onLayerChanged (Layer *layer, std::vector< Instance * > &instances)
 Called when some instance is changed on layer. More...
 
virtual void onInstanceCreate (Layer *layer, Instance *instance)
 Called when some instance gets created on layer. More...
 
virtual void onInstanceDelete (Layer *layer, Instance *instance)
 Called when some instance gets deleted on layer. More...
 
- Public Member Functions inherited from FIFE::LayerChangeListener
virtual ~LayerChangeListener ()
 

Private Attributes

LayerCachem_cache
 

Detailed Description

Definition at line 57 of file layercache.cpp.

Constructor & Destructor Documentation

FIFE::CacheLayerChangeListener::CacheLayerChangeListener ( LayerCache cache)
inline

Definition at line 59 of file layercache.cpp.

References m_cache.

Referenced by FIFE::LayerCache::setLayer().

+ Here is the caller graph for this function:

virtual FIFE::CacheLayerChangeListener::~CacheLayerChangeListener ( )
inlinevirtual

Definition at line 62 of file layercache.cpp.

Member Function Documentation

virtual void FIFE::CacheLayerChangeListener::onInstanceCreate ( Layer layer,
Instance instance 
)
inlinevirtual

Called when some instance gets created on layer.

Parameters
layerwhere change occurred
instancewhich got created

Implements FIFE::LayerChangeListener.

Definition at line 71 of file layercache.cpp.

References FIFE::LayerCache::addInstance(), and m_cache.

virtual void FIFE::CacheLayerChangeListener::onInstanceDelete ( Layer layer,
Instance instance 
)
inlinevirtual

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!

Implements FIFE::LayerChangeListener.

Definition at line 75 of file layercache.cpp.

References m_cache, and FIFE::LayerCache::removeInstance().

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

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

Implements FIFE::LayerChangeListener.

Definition at line 64 of file layercache.cpp.

References m_cache, and FIFE::LayerCache::updateInstance().

Member Data Documentation

LayerCache* FIFE::CacheLayerChangeListener::m_cache
private

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