Emergency 20 Dokumentation  4.2.0
OperationMessageHandler.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 #include <boost/noncopyable.hpp>
16 
17 
18 //[-------------------------------------------------------]
19 //[ Forward declarations ]
20 //[-------------------------------------------------------]
21 namespace qsf
22 {
23  namespace game
24  {
25  class BitStream;
26  }
27 }
28 
29 
30 //[-------------------------------------------------------]
31 //[ Namespace ]
32 //[-------------------------------------------------------]
33 namespace em5
34 {
35  namespace multiplayer
36  {
37 
38 
39  //[-------------------------------------------------------]
40  //[ Classes ]
41  //[-------------------------------------------------------]
46  class EM5_API_EXPORT OperationMessageHandler : public boost::noncopyable
47  {
48 
49 
50  //[-------------------------------------------------------]
51  //[ Public methods ]
52  //[-------------------------------------------------------]
53  public:
59 
64  virtual ~OperationMessageHandler();
65 
66 
67  //[-------------------------------------------------------]
68  //[ Public virtual em5::multiplayer::OperationMessageHandler methods ]
69  //[-------------------------------------------------------]
70  public:
80  virtual void writeData(int32 currentTick, qsf::game::BitStream& bitStream) = 0;
81 
96  virtual bool onHandleMessage(uint32 playerId, uint64 dataSize, const qsf::game::BitStream& bitStream) = 0;
97 
105  virtual void applyData(int32 currentTick) = 0;
106 
107 
108  };
109 
110 
111 //[-------------------------------------------------------]
112 //[ Namespace ]
113 //[-------------------------------------------------------]
114  } // multiplayer
115 } // em5
Definition: ActionPriority.h:13
EMERGENCY 5 base class for operation message handler.
Definition: OperationMessageHandler.h:46
unsigned int uint32
Definition: PlatformTypes.h:181
#define EM5_API_EXPORT
Definition: Export.h:28
uint64_t uint64
Definition: PlatformTypes.h:184
Game bit stream class (just a wrapper for linnet bit stream)
Definition: BitStream.h:40
Definition: PickupPersonByParamedicAction.h:21
signed int int32
Definition: PlatformTypes.h:180