1 #ifndef BLANK_SERVER_SERVER_HPP
2 #define BLANK_SERVER_SERVER_HPP
15 class ClientConnection;
25 Server(const Config &, World &);
32 UDPsocket &GetSocket() noexcept { return serv_sock; }
33 UDPpacket &GetPacket() noexcept { return serv_pack; }
35 World &GetWorld() noexcept { return world; }
37 void SetPlayerModel(const CompositeModel &) noexcept;
38 bool HasPlayerModel() const noexcept;
39 const CompositeModel &GetPlayerModel() const noexcept;
42 void HandlePacket(const UDPpacket &);
44 ClientConnection &GetClient(const IPaddress &);
49 std::list<ClientConnection> clients;
52 const CompositeModel *player_model;