7 #ifndef CAFU_SERVER_HPP_INCLUDED
8 #define CAFU_SERVER_HPP_INCLUDED
10 #include "Network/Network.hpp"
11 #include "Util/Util.hpp"
22 namespace cf {
namespace GuiSys {
class GuiResourcesT; } }
43 virtual void OnServerStateChanged(
const char* NewState)
const=0;
57 static int ConFunc_changeLevel_Callback(lua_State* LuaState);
67 void operator = (
const ServerT&);
69 void DropClient(
unsigned long ClientNr,
const char* Reason);
71 void ProcessInGamePacket (
NetDataT& InData);
72 static void ProcessInGamePacketHelper(
NetDataT& InData,
unsigned long LastIncomingSequenceNr);
79 std::string WorldName;
92 InitErrorT(
const std::string& Message) : std::runtime_error(Message) { }
Network address consisting of an IP4 address and port number.
Definition: Network.hpp:98
A class that the server uses in order to let a GUI know in which state the server currently is...
Definition: Server.hpp:39
The server, like the client, is a state machine.
Definition: Server.hpp:30
static int ConFunc_runMapCmd_Callback(lua_State *LuaState)
A console function that stores the given command string until the server "thinks" next...
Definition: Server.cpp:141
Definition: ServerWorld.hpp:19
A class that is thrown on server initialization errors.
Definition: Server.hpp:88
Class that allows easy and portable handling, sending and receiving of data over a network...
Definition: Network.hpp:181
ServerT(const GameInfoT &GameInfo, const GuiCallbackI &GuiCallback_, ModelManagerT &ModelMan, cf::GuiSys::GuiResourcesT &GuiRes)
The constructor.
Definition: Server.cpp:155
A platform independent timer class that allows to measure the time passed since its construction or t...
Definition: Util.hpp:24
This class encapsulates information about a game.
Definition: GameInfo.hpp:14
Definition: ClientInfo.hpp:13
This class is used for managing model instances.
Definition: ModelManager.hpp:31
This class manages and provides resources (fonts and models) for GuiImplT instances.
Definition: GuiResources.hpp:26