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

Public Member Functions

 CellCacheChangeListener (Layer *layer)
virtual ~CellCacheChangeListener ()
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


Detailed Description

Definition at line 45 of file cellcache.cpp.

Constructor & Destructor Documentation

FIFE::CellCacheChangeListener::CellCacheChangeListener ( Layer layer)

Definition at line 47 of file cellcache.cpp.

References m_layer.

virtual FIFE::CellCacheChangeListener::~CellCacheChangeListener ( )

Definition at line 50 of file cellcache.cpp.

Member Function Documentation

virtual void FIFE::CellCacheChangeListener::onInstanceDelete ( Layer layer,
Instance instance 
virtual void FIFE::CellCacheChangeListener::onLayerChanged ( Layer layer,
std::vector< Instance * > &  changedInstances 

Called when some instance is changed on layer.

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

Implements FIFE::LayerChangeListener.

Definition at line 53 of file cellcache.cpp.

References FIFE::Cell::addInstance(), FIFE::Cell::changeInstance(), FIFE::CellCache::getCell(), FIFE::Layer::getCellCache(), FIFE::Layer::getCellGrid(), FIFE::ICHANGE_BLOCK, FIFE::ICHANGE_CELL, FIFE::ICHANGE_LOC, FIFE::ICHANGE_ROTATION, m_layer, FIFE::Cell::removeInstance(), FIFE::CellGrid::toLayerCoordinates(), FIFE::CellGrid::toMapCoordinates(), and FIFE::CellGrid::toMultiCoordinates().

Member Data Documentation

Layer* FIFE::CellCacheChangeListener::m_layer

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