FIFE  6e1afdbeda11afe9ac53e6023a4be96ef88f1dc6
FIFE::TriggerChangeListener Class Reference
+ Inheritance diagram for FIFE::TriggerChangeListener:
+ Collaboration diagram for FIFE::TriggerChangeListener:

Public Member Functions

 TriggerChangeListener (Trigger *trigger)
 
virtual ~TriggerChangeListener ()
 
virtual void onInstanceDeleted (Instance *instance)
 
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...
 
virtual void onInstanceChanged (Instance *instance, InstanceChangeInfo info)
 
- Public Member Functions inherited from FIFE::CellChangeListener
virtual ~CellChangeListener ()
 
- Public Member Functions inherited from FIFE::InstanceChangeListener
virtual ~InstanceChangeListener ()
 
- Public Member Functions inherited from FIFE::InstanceDeleteListener
virtual ~InstanceDeleteListener ()
 

Private Attributes

Triggerm_trigger
 

Detailed Description

Definition at line 41 of file trigger.cpp.

Constructor & Destructor Documentation

FIFE::TriggerChangeListener::TriggerChangeListener ( Trigger trigger)
inline

Definition at line 43 of file trigger.cpp.

References m_trigger.

virtual FIFE::TriggerChangeListener::~TriggerChangeListener ( )
inlinevirtual

Definition at line 46 of file trigger.cpp.

Member Function Documentation

virtual void FIFE::TriggerChangeListener::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 82 of file trigger.cpp.

References FIFE::CELL_TRIGGER_BLOCKING_CHANGE, FIFE::Trigger::getTriggerConditions(), m_trigger, and FIFE::Trigger::setTriggered().

virtual void FIFE::TriggerChangeListener::onInstanceDeleted ( Instance instance)
inlinevirtual
virtual void FIFE::TriggerChangeListener::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 58 of file trigger.cpp.

References FIFE::CELL_TRIGGER_ENTER, FIFE::Trigger::getEnabledInstances(), FIFE::Trigger::getTriggerConditions(), FIFE::Trigger::isEnabledForAllInstances(), m_trigger, and FIFE::Trigger::setTriggered().

virtual void FIFE::TriggerChangeListener::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 70 of file trigger.cpp.

References FIFE::CELL_TRIGGER_EXIT, FIFE::Trigger::getEnabledInstances(), FIFE::Trigger::getTriggerConditions(), FIFE::Trigger::isEnabledForAllInstances(), m_trigger, and FIFE::Trigger::setTriggered().

Member Data Documentation

Trigger* FIFE::TriggerChangeListener::m_trigger
private

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