FIFE  be64c707dea6b3250bd4355bf5c825d25920087d
FIFE::CellChangeListener Class Referenceabstract

Listener interface for changes happening on a cell. More...

#include <cell.h>

+ Inheritance diagram for FIFE::CellChangeListener:
+ Collaboration diagram for FIFE::CellChangeListener:

Public Member Functions

virtual ~CellChangeListener ()
 
virtual void onInstanceEnteredCell (Cell *cell, Instance *instance)=0
 Called when some instance entered the cell. More...
 
virtual void onInstanceExitedCell (Cell *cell, Instance *instance)=0
 Called when some instance exited the cell. More...
 
virtual void onBlockingChangedCell (Cell *cell, CellTypeInfo type, bool blocks)=0
 Called when some instance changed its blocking property. More...
 

Detailed Description

Listener interface for changes happening on a cell.

Definition at line 97 of file cell.h.

Constructor & Destructor Documentation

◆ ~CellChangeListener()

virtual FIFE::CellChangeListener::~CellChangeListener ( )
inlinevirtual

Definition at line 99 of file cell.h.

Member Function Documentation

◆ onBlockingChangedCell()

virtual void FIFE::CellChangeListener::onBlockingChangedCell ( Cell cell,
CellTypeInfo  type,
bool  blocks 
)
pure virtual

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.

Implemented in FIFE::ZoneCellChangeListener, and FIFE::TriggerChangeListener.

◆ onInstanceEnteredCell()

virtual void FIFE::CellChangeListener::onInstanceEnteredCell ( Cell cell,
Instance instance 
)
pure virtual

Called when some instance entered the cell.

Parameters
cellwhere enter occurred.
instancewhich enter the cell.

Implemented in FIFE::ZoneCellChangeListener, and FIFE::TriggerChangeListener.

◆ onInstanceExitedCell()

virtual void FIFE::CellChangeListener::onInstanceExitedCell ( Cell cell,
Instance instance 
)
pure virtual

Called when some instance exited the cell.

Parameters
cellwhere exit occurred.
instancewhich exit the cell.

Implemented in FIFE::ZoneCellChangeListener, and FIFE::TriggerChangeListener.


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