58 return "CONNECTION FAILED";
61 return "CONNECTION ADDRESS";
77 std::string indent =
"";
78 std::string result = indent +
"Package: {\n";
83 result += indent +
"}\n";
100 return "LASER_PLAYER";
107 std::string indent =
"";
108 std::string result = indent +
"ECSPackage: {\n";
112 result += indent +
"}\n";
118 std::string indent =
"";
119 std::string result = indent +
"EntityActions: {\n";
123 result += indent +
"}\n";
189 std::string indent =
"";
191 std::string result = indent +
"struct MessageInfo: {\n";
194 result += indent +
"- username: " + node +
"\n";
196 result += indent +
"}\n";
202 std::string indent =
"";
203 std::string result = indent +
"struct MessageNode: {\n";
207 result += indent +
"}\n";
ActiveScreen
This is the enum class in charge of the window switcher code. This enum allows the mainloop of the pr...
messageType
Enum representing the different types of game messages.
Provides custom string conversion functions as alternatives to std::to_string.
ActiveShape
Enum representing different types of shapes managed by the ShapeComponent.
@ RECTANGLE
Rectangle shape.
@ NONE
No shape initialized.
MessageType
Enum for the different message types in the UDP protocol.
const std::string myToString(const Rect< RectType > &rectangle)
Converts a Rect<T> object to its string representation.
A structure containing information about a game message.
uint8_t status
Status of the event (e.g., success or failure).
coord coords
Coordinates associated with the event, such as the position of an entity.
char username[9]
Username of player connecting.