FIFE  6e1afdbeda11afe9ac53e6023a4be96ef88f1dc6
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 110 of file cell.h.

Constructor & Destructor Documentation

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

Definition at line 112 of file cell.h.

Member Function Documentation

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.

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.

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: