Emergency 20 Dokumentation  4.2.0
SelectionMarkerManager.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 
16 
17 #include <boost/signals2.hpp>
18 
19 
20 //[-------------------------------------------------------]
21 //[ Forward declarations ]
22 //[-------------------------------------------------------]
23 namespace em5
24 {
25  class GameDebugGroup;
26 }
27 namespace qsf
28 {
29  class Entity;
30 }
31 
32 
33 //[-------------------------------------------------------]
34 //[ Namespace ]
35 //[-------------------------------------------------------]
36 namespace em5
37 {
38 
39 
40  //[-------------------------------------------------------]
41  //[ Classes ]
42  //[-------------------------------------------------------]
47  class EM5_API_EXPORT SelectionMarkerManager : public qsf::UniqueInstance<SelectionMarkerManager>
48  {
49 
50 
51  //[-------------------------------------------------------]
52  //[ Public methods ]
53  //[-------------------------------------------------------]
54  public:
60 
65  virtual ~SelectionMarkerManager();
66 
67  void setLocalPlayerDefaultAlpha(float localPlayerDefaultAlpha);
68  void showGroundMarker(qsf::Entity& entity, bool selected);
69 
70 
71  //[-------------------------------------------------------]
72  //[ Private methods ]
73  //[-------------------------------------------------------]
74  private:
75  void onEntitySelected(uint64 entityId);
76  void onEntityDeselected(uint64 entityId);
77  void updateMiniMapSquadVehiclePathVisualization(uint64 deselectedEntityId);
78 
79 
80  //[-------------------------------------------------------]
81  //[ Private data ]
82  //[-------------------------------------------------------]
83  private:
84  const GameDebugGroup& mGameDebugGroup;
85  boost::signals2::connection mSelectSignalConnection;
86  boost::signals2::connection mDeselectSignalConnection;
87  float mLocalPlayerDefaultAlpha;
88 
89 
90  };
91 
92 
93 //[-------------------------------------------------------]
94 //[ Namespace ]
95 //[-------------------------------------------------------]
96 } // em5
Definition: ActionPriority.h:13
Entity class.
Definition: Entity.h:46
#define EM5_API_EXPORT
Definition: Export.h:28
uint64_t uint64
Definition: PlatformTypes.h:184
Definition: PickupPersonByParamedicAction.h:21
Unique instance interface.
Definition: UniqueInstance.h:34
EMERGENCY 5 selection marker manager class that cares for activation and deactivation of markers...
Definition: SelectionMarkerManager.h:47
Game debug group implementation.
Definition: GameDebugGroup.h:36