Emergency 20 Dokumentation  4.2.0
AiSpecialSteeringStateCallback.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Header guard ]
6 //[-------------------------------------------------------]
7 #pragma once
8 
9 
10 //[-------------------------------------------------------]
11 //[ Includes ]
12 //[-------------------------------------------------------]
14 
15 
16 //[-------------------------------------------------------]
17 //[ Namespace ]
18 //[-------------------------------------------------------]
19 namespace em5
20 {
21 
22 
23  //[-------------------------------------------------------]
24  //[ Classes ]
25  //[-------------------------------------------------------]
34  {
35 
36 
37  //[-------------------------------------------------------]
38  //[ Public virtual qsf::ai::ApproachedSpecialStateCallback methods ]
39  //[-------------------------------------------------------]
40  public:
41  virtual Reaction onEntityApproachesNode(qsf::Entity& entity, const qsf::ai::worldElement::State& state, qsf::UnsignedFloat distance) override;
42  inline virtual Reaction onEntityApproachesArea(qsf::Entity& entity, const qsf::ai::worldElement::State& state, qsf::UnsignedFloat distance) override;
43  inline virtual Reaction onEntityInCurrentArea(qsf::Entity& entity, const qsf::ai::worldElement::State& state) override;
44 
45 
46  };
47 
48 
49 //[-------------------------------------------------------]
50 //[ Namespace ]
51 //[-------------------------------------------------------]
52 } // em5
53 
54 
55 //[-------------------------------------------------------]
56 //[ Implementation ]
57 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
Entity class.
Definition: Entity.h:46
Definition: WorldElementState.h:59
Definition: ApproachedSpecialStateCallback.h:26
virtual Reaction onEntityApproachesNode(qsf::Entity &entity, const qsf::ai::worldElement::State &state, qsf::UnsignedFloat distance) override
Reaction
Definition: ApproachedSpecialStateCallback.h:30
virtual Reaction onEntityApproachesArea(qsf::Entity &entity, const qsf::ai::worldElement::State &state, qsf::UnsignedFloat distance) override
Definition: AiSpecialSteeringStateCallback-inl.h:14
Definition: UnsignedFloat.h:33
virtual Reaction onEntityInCurrentArea(qsf::Entity &entity, const qsf::ai::worldElement::State &state) override
Definition: AiSpecialSteeringStateCallback-inl.h:19
Example of special state callback for EM5. Allows ignoring blocked nodes if emergency lighting is swi...
Definition: AiSpecialSteeringStateCallback.h:33