2013-12-10 11:26:18 +01:00
|
|
|
#ifndef DANBIAS_CLIENT_GAMESTATE_H
|
|
|
|
#define DANBIAS_CLIENT_GAMESTATE_H
|
2013-12-06 10:38:43 +01:00
|
|
|
#include "GameClientState.h"
|
2013-12-10 11:26:18 +01:00
|
|
|
#include "OysterMath.h"
|
|
|
|
#include <string>
|
2013-12-06 10:38:43 +01:00
|
|
|
namespace DanBias
|
|
|
|
{
|
|
|
|
namespace Client
|
|
|
|
{
|
|
|
|
class GameState : public GameClientState
|
|
|
|
{
|
2013-12-10 11:26:18 +01:00
|
|
|
enum gameStateState
|
|
|
|
{
|
|
|
|
gameStateState_loading,
|
|
|
|
gameStateState_playing,
|
|
|
|
gameStateState_end,
|
|
|
|
};
|
2013-12-09 09:23:39 +01:00
|
|
|
private:
|
2013-12-10 11:26:18 +01:00
|
|
|
|
2013-12-09 09:23:39 +01:00
|
|
|
struct myData;
|
|
|
|
myData* privData;
|
2013-12-06 10:38:43 +01:00
|
|
|
public:
|
|
|
|
GameState(void);
|
|
|
|
~GameState(void);
|
|
|
|
bool Init();
|
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) ;
|
2013-12-10 11:26:18 +01:00
|
|
|
gameStateState LoadGame();
|
|
|
|
|
2013-12-13 12:02:49 +01:00
|
|
|
bool Render()override;
|
|
|
|
bool Release()override;
|
|
|
|
|
|
|
|
void Protocol(ProtocolStruct* pos)override;
|
|
|
|
void PlayerPosProtocol(PlayerPos* pos);
|
|
|
|
void ObjectPosProtocol(ObjPos* pos);
|
|
|
|
//void Protocol(LightPos pos);
|
2013-12-06 10:38:43 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2013-12-10 11:26:18 +01:00
|
|
|
#endif
|