FIFE  be64c707dea6b3250bd4355bf5c825d25920087d
FIFE::ZoneCellChangeListener Class Reference
+ Inheritance diagram for FIFE::ZoneCellChangeListener:
+ Collaboration diagram for FIFE::ZoneCellChangeListener:

Public Member Functions

 ZoneCellChangeListener (CellCache *cache)
 
virtual ~ZoneCellChangeListener ()
 
virtual void onInstanceEnteredCell (Cell *cell, Instance *instance)
 Called when some instance entered the cell. More...
 
virtual void onInstanceExitedCell (Cell *cell, Instance *instance)
 Called when some instance exited the cell. More...
 
virtual void onBlockingChangedCell (Cell *cell, CellTypeInfo type, bool blocks)
 Called when some instance changed its blocking property. More...
 
- Public Member Functions inherited from FIFE::CellChangeListener
virtual ~CellChangeListener ()
 

Private Attributes

CellCachem_cache
 

Detailed Description

Definition at line 329 of file cellcache.cpp.

Constructor & Destructor Documentation

◆ ZoneCellChangeListener()

FIFE::ZoneCellChangeListener::ZoneCellChangeListener ( CellCache cache)
inline

Definition at line 331 of file cellcache.cpp.

◆ ~ZoneCellChangeListener()

virtual FIFE::ZoneCellChangeListener::~ZoneCellChangeListener ( )
inlinevirtual

Definition at line 334 of file cellcache.cpp.

Member Function Documentation

◆ onBlockingChangedCell()

virtual void FIFE::ZoneCellChangeListener::onBlockingChangedCell ( Cell cell,
CellTypeInfo  type,
bool  blocks 
)
inlinevirtual

Called when some instance changed its blocking property.

Parameters
cellwhere exit occurred.
typeblocking type
See also
CellType.
Parameters
blockstrue if the CellType indicates the cell as a blocker, otherwise false.

Implements FIFE::CellChangeListener.

Definition at line 345 of file cellcache.cpp.

References FIFE::Cell::getNeighbors(), FIFE::Cell::getZone(), and FIFE::Cell::setZoneProtected().

◆ onInstanceEnteredCell()

virtual void FIFE::ZoneCellChangeListener::onInstanceEnteredCell ( Cell cell,
Instance instance 
)
inlinevirtual

Called when some instance entered the cell.

Parameters
cellwhere enter occurred.
instancewhich enter the cell.

Implements FIFE::CellChangeListener.

Definition at line 337 of file cellcache.cpp.

◆ onInstanceExitedCell()

virtual void FIFE::ZoneCellChangeListener::onInstanceExitedCell ( Cell cell,
Instance instance 
)
inlinevirtual

Called when some instance exited the cell.

Parameters
cellwhere exit occurred.
instancewhich exit the cell.

Implements FIFE::CellChangeListener.

Definition at line 341 of file cellcache.cpp.

Member Data Documentation

◆ m_cache

CellCache* FIFE::ZoneCellChangeListener::m_cache
private

Definition at line 368 of file cellcache.cpp.


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