Emergency 20 Dokumentation  4.2.0
MinimapHelper.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"
15 
16 
17 //[-------------------------------------------------------]
18 //[ Forward declarations ]
19 //[-------------------------------------------------------]
20 namespace em5
21 {
22  class MiniMapIconRegistrationLogic;
23 }
24 namespace qsf
25 {
26  class Entity;
27 }
28 
29 
30 //[-------------------------------------------------------]
31 //[ Namespace ]
32 //[-------------------------------------------------------]
33 namespace em5
34 {
35 
36 
37  //[-------------------------------------------------------]
38  //[ Classes ]
39  //[-------------------------------------------------------]
45  {
46 
47 
48  //[-------------------------------------------------------]
49  //[ Public static methods ]
50  //[-------------------------------------------------------]
51  public:
52  static MiniMapIconRegistrationLogic& getMiniMapIconRegistrationLogic();
53 
54  static void registerIcon(uint64 entityId, MiniMapIconType minimapIconType, bool onlyForLocalPlayer = false);
55  static void registerIcon(const qsf::Entity& entity, MiniMapIconType minimapIconType, bool onlyForLocalPlayer = false);
56 
57  static void unregisterIcon(uint64 entityId, bool onlyForLocalPlayer = false);
58  static void unregisterIcon(const qsf::Entity& entity, bool onlyForLocalPlayer = false);
59 
60  static void registerEventIcon(uint64 entityId);
61  static void registerEventIcon(const qsf::Entity& entity);
62 
63  static void registerPingByWorldPosition(const glm::vec3& position, bool cyclesAnimation = true, bool playSound = true);
64  static void registerPingByEntity(const qsf::Entity& entity, bool cyclesAnimation = true, bool playSound = true);
65  static void registerPingByEntityId(uint64 entityId, bool cyclesAnimation = true, bool playSound = true);
66 
67 
68  //[-------------------------------------------------------]
69  //[ Private methods ]
70  //[-------------------------------------------------------]
71  public:
72  // No instance constructable, this class is purely static
75 
76 
77  };
78 
79 
80 //[-------------------------------------------------------]
81 //[ Namespace ]
82 //[-------------------------------------------------------]
83 } // em5
Definition: ActionPriority.h:13
Entity class.
Definition: Entity.h:46
#define EM5_API_EXPORT
Definition: Export.h:28
Minimap registration logic.
Definition: MiniMapIconRegistrationLogic.h:48
uint64_t uint64
Definition: PlatformTypes.h:184
Definition: PickupPersonByParamedicAction.h:21
Static minimap helper class.
Definition: MinimapHelper.h:44
MiniMapIconType
Definition: MiniMapIcons.h:26
~MinimapHelper()
Definition: MinimapHelper.h:74
MinimapHelper()
Definition: MinimapHelper.h:73