1 #ifndef BLANK_SERVER_SERVER_HPP
2 #define BLANK_SERVER_SERVER_HPP
4 #include "../app/Config.hpp"
17 class ClientConnection;
22 Server(const Config::Network &, World &);
29 UDPsocket &GetSocket() noexcept { return serv_sock; }
30 UDPpacket &GetPacket() noexcept { return serv_pack; }
32 World &GetWorld() noexcept { return world; }
34 void SetPlayerModel(const CompositeModel &) noexcept;
35 bool HasPlayerModel() const noexcept;
36 const CompositeModel &GetPlayerModel() const noexcept;
39 void HandlePacket(const UDPpacket &);
41 ClientConnection &GetClient(const IPaddress &);
46 std::list<ClientConnection> clients;
49 const CompositeModel *player_model;