Emergency 20 Dokumentation  4.2.0
em5::AiSpecialSteeringStateCallback Class Reference

Example of special state callback for EM5. Allows ignoring blocked nodes if emergency lighting is switched on. More...

#include <AiSpecialSteeringStateCallback.h>

Inheritance diagram for em5::AiSpecialSteeringStateCallback:
qsf::ai::ApproachedSpecialStateCallback

Public Member Functions

virtual Reaction onEntityApproachesNode (qsf::Entity &entity, const qsf::ai::worldElement::State &state, qsf::UnsignedFloat distance) override
 
virtual Reaction onEntityApproachesArea (qsf::Entity &entity, const qsf::ai::worldElement::State &state, qsf::UnsignedFloat distance) override
 
virtual Reaction onEntityInCurrentArea (qsf::Entity &entity, const qsf::ai::worldElement::State &state) override
 
- Public Member Functions inherited from qsf::ai::ApproachedSpecialStateCallback
virtual ~ApproachedSpecialStateCallback ()
 

Additional Inherited Members

- Public Types inherited from qsf::ai::ApproachedSpecialStateCallback
enum  Reaction { NONE, COME_TO_HALT, STOP_IMMEDIATELY }
 

Detailed Description

Example of special state callback for EM5. Allows ignoring blocked nodes if emergency lighting is switched on.

This is currently only a stub and not needed at the moment because the only feature of ignoring traffic lights has moved to the movement modes. We should remove it in the end if it is not needed but I think there will be further use cases if we implement the more specific features later on.

Member Function Documentation

qsf::ai::ApproachedSpecialStateCallback::Reaction em5::AiSpecialSteeringStateCallback::onEntityApproachesArea ( qsf::Entity entity,
const qsf::ai::worldElement::State state,
qsf::UnsignedFloat  distance 
)
inlineoverridevirtual
virtual Reaction em5::AiSpecialSteeringStateCallback::onEntityApproachesNode ( qsf::Entity entity,
const qsf::ai::worldElement::State state,
qsf::UnsignedFloat  distance 
)
overridevirtual
qsf::ai::ApproachedSpecialStateCallback::Reaction em5::AiSpecialSteeringStateCallback::onEntityInCurrentArea ( qsf::Entity entity,
const qsf::ai::worldElement::State state 
)
inlineoverridevirtual

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