Danbias/Code/Game/DanBiasGame/GameClientState/GameClientState.h

56 lines
980 B
C
Raw Normal View History

#ifndef DANBIAS_CLIENT_GAMECLIENTSTATE_H
#define DANBIAS_CLIENT_GAMECLIENTSTATE_H
#define NOMINMAX
#include "L_inputClass.h"
#include "NetworkClient.h"
namespace DanBias
{
namespace Client
{
class GameClientState
{
public:
2013-12-13 12:02:49 +01:00
struct ProtocolStruct
{
};
struct ObjPos :public ProtocolStruct
{
2013-12-17 10:07:46 +01:00
int object_ID;
2013-12-13 12:02:49 +01:00
float worldPos[16];
};
struct PlayerPos :public ProtocolStruct
{
float playerPos[3];
};
struct PlayerMove :public ProtocolStruct
{
float playerPos[3];
};
struct PlayerName :public ProtocolStruct
{
char name[255];
};
enum ClientState
{
ClientState_Lobby,
ClientState_Game,
ClientState_Same,
};
public:
GameClientState(void);
virtual ~GameClientState(void);
virtual bool Init(Oyster::Network::NetworkClient* nwClient) = 0;
virtual ClientState Update(float deltaTime, InputClass* KeyInput) = 0;
virtual bool Render() = 0;
virtual bool Release() = 0;
2013-12-13 12:02:49 +01:00
virtual void Protocol(ProtocolStruct* protocolStruct) = 0;
};
};
};
#endif