FIFE  6e1afdbeda11afe9ac53e6023a4be96ef88f1dc6
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

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

Definition at line 331 of file cellcache.cpp.

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

Definition at line 334 of file cellcache.cpp.

Member Function Documentation

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().

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.

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

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: