7 #ifndef CAFU_CLIENT_STATE_INGAME_HPP_INCLUDED
8 #define CAFU_CLIENT_STATE_INGAME_HPP_INCLUDED
10 #include "ClientState.hpp"
12 #include "ScrlInfo.hpp"
13 #include "Fonts/Font.hpp"
14 #include "Network/Network.hpp"
15 #include "../../Games/PlayerCommand.hpp"
35 int GetID()
const override;
38 void Render(
float FrameTime)
override;
39 void MainLoop(
float FrameTime)
override;
42 static int ConFunc_say_Callback(lua_State* LuaState);
43 static int ConFunc_chatPrint_Callback(lua_State* LuaState);
44 static int ConFunc_showPath_Callback(lua_State* LuaState);
45 static int ConFunc_recordPath_Callback(lua_State* LuaState);
54 void ParseServerPacket (
NetDataT& InData);
55 static void ParseServerPacketHelper(
NetDataT& InData,
unsigned long );
73 unsigned long ClientFrameNr;
75 unsigned int m_PlayerCommandCount;
Network address consisting of an IP4 address and port number.
Definition: Network.hpp:98
This class implements a mixture of a reliable and unreliable, bi-directional network protocol for Caf...
Definition: Network.hpp:391
This class records the path that an entity takes through a level into a file.
Definition: PathRecorder.hpp:15
This struct describes a mouse event.
Definition: OpenGLWindow.hpp:185
A class for MatSys-based font rendering.
Definition: Font.hpp:19
This struct represents per-frame player inputs for controlling human player entities.
Definition: PlayerCommand.hpp:32
Definition: ClientWorld.hpp:37
This class implements the state of the client when it is fully connected and thus "in-game"...
Definition: ClientStateInGame.hpp:27
Class that allows easy and portable handling, sending and receiving of data over a network...
Definition: Network.hpp:181
This struct describes a keyboard event.
Definition: OpenGLWindow.hpp:20
int GetID() const override
Returns some client-specific, unique ID for this state.
Definition: ClientStateInGame.cpp:190
Definition: Client.hpp:24
This is the base class for the concrete classes that implement the states of the client.
Definition: ClientState.hpp:18
Definition: Graphs.hpp:13
Definition: Renderer.hpp:16