![]() |
R-Type
2
Doom but in better
|
Data Structures | |
struct | MessageInfo |
struct | MessageNode |
class | NetworkManager |
A class that manages the network communication through UDP sockets. More... | |
class | Packet |
Represents a packet for the custom binary UDP protocol. More... | |
class | ThreadCapsule |
Enumerations | |
enum class | MessageType : uint8_t { P_CONNECT = 1 , P_DISCONNECT = 2 , P_MOVE = 3 , P_SHOOT = 4 , P_SPAWN = 5 , P_KILL = 6 , P_DAMAGE = 7 , P_STATUS = 8 , P_HANDSHAKE = 254 , P_ERROR = 255 } |
Enum for the different message types in the UDP protocol. More... | |
|
strong |
Enum for the different message types in the UDP protocol.
Each message type corresponds to a different action or communication between the client and the server. The types include CONNECT
, DISCONNECT
, MOVE
, SHOOT
, SPAWN
, UPDATE
, and a generic ERROR
type.
Enumerator | |
---|---|
P_CONNECT | |
P_DISCONNECT | |
P_MOVE | |
P_SHOOT | |
P_SPAWN | |
P_KILL | |
P_DAMAGE | |
P_STATUS | |
P_HANDSHAKE | |
P_ERROR |
Definition at line 29 of file MessageType.hpp.