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

44 lines
989 B
C
Raw Normal View History

#ifndef DANBIAS_CLIENT_GAMESTATE_H
#define DANBIAS_CLIENT_GAMESTATE_H
#include "GameClientState.h"
#include "OysterMath.h"
#include <string>
namespace DanBias
{
namespace Client
{
class GameState : public GameClientState
{
enum gameStateState
{
gameStateState_loading,
gameStateState_playing,
gameStateState_end,
};
private:
struct myData;
myData* privData;
public:
GameState(void);
~GameState(void);
bool Init(Oyster::Network::NetworkClient* nwClient);
2013-12-13 12:02:49 +01:00
GameClientState::ClientState Update(float deltaTime, InputClass* KeyInput) override;
bool LoadModels(std::wstring mapFile) ;
bool InitCamera(Oyster::Math::Float3 startPos) ;
gameStateState LoadGame();
2013-12-13 12:02:49 +01:00
bool Render()override;
bool Release()override;
void Protocol(ProtocolStruct* pos)override;
2013-12-16 11:08:10 +01:00
void Protocol(PlayerPos* pos);
void Protocol(ObjPos* pos);
2013-12-17 13:39:10 +01:00
void Protocol(KeyInput* pos);
2013-12-13 12:02:49 +01:00
void PlayerPosProtocol(PlayerPos* pos);
void ObjectPosProtocol(ObjPos* pos);
//void Protocol(LightPos pos);
};
};
};
#endif