FIFE
be64c707dea6b3250bd4355bf5c825d25920087d
|
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 | |
Layer * | m_layer |
Definition at line 45 of file cellcache.cpp.
|
inline |
Definition at line 47 of file cellcache.cpp.
References m_layer.
|
inlinevirtual |
Definition at line 50 of file cellcache.cpp.
|
inlinevirtual |
Called when some instance gets created on layer.
layer | where change occurred |
instance | which got created |
Implements FIFE::LayerChangeListener.
Definition at line 179 of file cellcache.cpp.
References FIFE::Cell::addInstance(), FIFE::CellCache::getCell(), FIFE::Layer::getCellCache(), FIFE::Layer::getCellGrid(), FIFE::Location::getExactLayerCoordinatesRef(), FIFE::Location::getLayerCoordinates(), FIFE::Instance::getLocationRef(), FIFE::Instance::getMultiInstances(), FIFE::Instance::getRotation(), FIFE::CellCache::isInCellCache(), FIFE::Instance::isMultiCell(), m_layer, FIFE::CellCache::resize(), FIFE::Location::setLayerCoordinates(), FIFE::CellGrid::toLayerCoordinates(), FIFE::CellGrid::toMapCoordinates(), FIFE::CellGrid::toMultiCoordinates(), and FIFE::Instance::updateMultiInstances().
|
inlinevirtual |
Called when some instance gets deleted on layer.
layer | where change occurred |
instance | which will be deleted |
Implements FIFE::LayerChangeListener.
Definition at line 221 of file cellcache.cpp.
References FIFE::CellCache::getCell(), FIFE::Layer::getCellCache(), FIFE::Layer::getCellGrid(), FIFE::Location::getExactLayerCoordinatesRef(), FIFE::Location::getLayerCoordinates(), FIFE::Instance::getLocationRef(), FIFE::Instance::getMultiInstances(), FIFE::Instance::getRotation(), FIFE::Instance::isMultiCell(), m_layer, FIFE::Cell::removeInstance(), FIFE::CellCache::setSizeUpdate(), FIFE::CellGrid::toLayerCoordinates(), FIFE::CellGrid::toMapCoordinates(), FIFE::CellGrid::toMultiCoordinates(), and FIFE::Instance::updateMultiInstances().
|
inlinevirtual |
Called when some instance is changed on layer.
layer | where change occurred |
changedInstances | list of instances containing some changes |
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().
|
private |
Definition at line 257 of file cellcache.cpp.
Referenced by CellCacheChangeListener(), onInstanceCreate(), onInstanceDelete(), and onLayerChanged().