Emergency 20 Dokumentation  4.2.0
AtmosphericRadioMessageHelper.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 //[-------------------------------------------------------]
13 #include "em5/Export.h"
14 
15 
16 //[-------------------------------------------------------]
17 //[ Forward declarations ]
18 //[-------------------------------------------------------]
19 namespace qsf
20 {
21  class Entity;
22  class Time;
23  class StringHash;
24  class MessageConfiguration;
25 }
26 namespace em5
27 {
28  class EventHintParameters;
29  class FreeplayEvent;
30 }
31 
32 
33 //[-------------------------------------------------------]
34 //[ Namespace ]
35 //[-------------------------------------------------------]
36 namespace em5
37 {
38 
39 
40  //[-------------------------------------------------------]
41  //[ Classes ]
42  //[-------------------------------------------------------]
48  {
49 
50 
51  //[-------------------------------------------------------]
52  //[ Public static methods ]
53  //[-------------------------------------------------------]
54  public:
55  // Helper functions for atmo hints
56  static void triggerAtmoHintExplosion(qsf::Entity& target);
57  static void triggerAtmoHintVehicleUnitDamage(qsf::Entity& target);
58  static void triggerAtmoHintPersonUnitDamage(qsf::Entity& target);
59  static void triggerAtmoHintThunder();
60  static void triggerAtmoHintRain();
61  static void triggerAtmoHintFog();
62  static void triggerAtmoHintStorm();
63  static void clear();
64 
65 
66  //[-------------------------------------------------------]
67  //[ Private static methods ]
68  //[-------------------------------------------------------]
69  private:
70  static void triggerAtmoHint(const std::string& hintName, float delay);
71  static void playAtmoHint(const std::string& hint);
72  static bool checkHintConditions(qsf::Entity* target);
73 
74 
75  //[-------------------------------------------------------]
76  //[ Private static data ]
77  //[-------------------------------------------------------]
78  private:
79  static std::string mLastHint;
80  static qsf::JobProxy mSimulationJobProxy;
81 
82 
83  //[-------------------------------------------------------]
84  //[ Public methods ]
85  //[-------------------------------------------------------]
86  public:
89 
90 
91  };
92 
93 
94 //[-------------------------------------------------------]
95 //[ Namespace ]
96 //[-------------------------------------------------------]
97 } // em5
Definition: ActionPriority.h:13
Job proxy class.
Definition: JobProxy.h:51
Entity class.
Definition: Entity.h:46
Atmo helper can trigger atmo hints.
Definition: AtmosphericRadioMessageHelper.h:47
#define EM5_API_EXPORT
Definition: Export.h:28
Definition: PickupPersonByParamedicAction.h:21