Emergency 20 Dokumentation  4.2.0
MinimapPingHandler.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  namespace multiplayer
22  {
23 
24 
25  //[-------------------------------------------------------]
26  //[ Classes ]
27  //[-------------------------------------------------------]
33  {
34 
35 
36  //[-------------------------------------------------------]
37  //[ Public definitions ]
38  //[-------------------------------------------------------]
39  public:
41 
42 
43  //[-------------------------------------------------------]
44  //[ Public methods ]
45  //[-------------------------------------------------------]
46  public:
52 
57  virtual ~MinimapPingHandler();
58 
63  void onNewPing(const glm::vec3& position);
64 
65 
66  //[-------------------------------------------------------]
67  //[ Public virtual em5::multiplayer::OperationMessageHandler methods ]
68  //[-------------------------------------------------------]
69  public:
70  virtual void writeData(int32 currentTick, qsf::game::BitStream& bitStream) override;
71  virtual bool onHandleMessage(uint32 playerId, uint64 dataSize, const qsf::game::BitStream& bitStream) override;
72  virtual void applyData(int32 currentTick) override;
73 
74 
75  };
76 
77 
78 //[-------------------------------------------------------]
79 //[ Namespace ]
80 //[-------------------------------------------------------]
81  } // multiplayer
82 } // em5
Definition: ActionPriority.h:13
EMERGENCY 5 handler for the MINIMAP_PING operation message.
Definition: MinimapPingHandler.h:32
virtual bool onHandleMessage(uint32 playerId, uint64 dataSize, const qsf::game::BitStream &bitStream) override
Gets called when a operation message (handled by this handler) is received.
MinimapPingHandler()
OperationMessage::MINIMAP_PING.
EMERGENCY 5 base class for operation message handler.
Definition: OperationMessageHandler.h:46
unsigned int uint32
Definition: PlatformTypes.h:181
virtual void writeData(int32 currentTick, qsf::game::BitStream &bitStream) override
Writes the stored data for the given tick into the bit stream.
virtual void applyData(int32 currentTick) override
Gets called when the received data should by applied.
OperationMessage
EMERGENCY 5 multiplayer operation message types.
Definition: OperationMessages.h:51
uint64_t uint64
Definition: PlatformTypes.h:184
Game bit stream class (just a wrapper for linnet bit stream)
Definition: BitStream.h:40
void onNewPing(const glm::vec3 &position)
Add data about a new minimap ping to the handler.
signed int int32
Definition: PlatformTypes.h:180
virtual ~MinimapPingHandler()
Destructor.
static const OperationMessage HANDLER_ID
Definition: MinimapPingHandler.h:40