SuperTuxKart
chat_commands.hpp
1 //
2 // SuperTuxKart - a fun racing game with go-kart
3 // Copyright (C) 2025 SuperTuxKart-Team
4 //
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 3
8 // of the License, or (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 
19 #ifndef CHAT_COMMANDS_HPP
20 #define CHAT_COMMANDS_HPP
21 
22 #include "network/protocols/lobby_protocol.hpp"
23 #include "network/protocols/server_lobby.hpp"
24 #include "utils/cpp2011.hpp"
25 #include "utils/time.hpp"
26 
27 #include "irrString.h"
28 
29 #include <algorithm>
30 #include <array>
31 #include <atomic>
32 #include <functional>
33 #include <map>
34 #include <memory>
35 #include <mutex>
36 #include <set>
37 
38 class BareNetworkString;
39 class DatabaseConnector;
40 class NetworkItemManager;
41 class NetworkString;
43 class STKPeer;
44 class SocketAddress;
45 class Ranking;
46 
47 namespace ChatCommands
48 {
49  void handleServerCommand(ServerLobby* lobby, Event* event, std::shared_ptr<STKPeer> peer);
50 }
51 
52 #endif // CHAT_COMMANDS_HPP
Describes a chain of 8-bit unsigned integers.
Definition: network_string.hpp:53
Class representing an event that need to pass trough the system. This is used to remove ENet dependen...
Definition: event.hpp:73
The network item manager is responsible for handling all network related item manager tasks - synchro...
Definition: network_item_manager.hpp:45
Contains the profile of a player.
Definition: network_player_profile.hpp:42
A new implementation of NetworkString, which has a fixed format: Byte 0: The type of the message,...
Definition: network_string.hpp:422
Definition: ranking.hpp:57
Represents a peer. This class is used to interface the ENetPeer structure.
Definition: stk_peer.hpp:76
Definition: server_lobby.hpp:52
Describes a IPv4 or IPv6 address in sockaddr_in(6) format, suitable in using with sendto.
Definition: socket_address.hpp:47