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

36 lines
922 B
C
Raw Normal View History

#ifndef DANBIAS_CLIENT_GAMESTATE_H
#define DANBIAS_CLIENT_GAMESTATE_H
#include "GameClientState.h"
#include "OysterMath.h"
#include <string>
2014-02-10 16:30:47 +01:00
2014-02-13 15:21:02 +01:00
namespace DanBias { namespace Client
{
2014-02-12 09:02:44 +01:00
class GameState : public GameClientState
{
2014-02-13 15:21:02 +01:00
public:
2014-02-12 09:02:44 +01:00
enum gameStateState
{
gameStateState_loading,
gameStateState_playing,
gameStateState_end,
};
2014-02-13 15:21:02 +01:00
GameState(void);
~GameState(void);
2014-02-17 11:27:43 +01:00
bool Init( SharedStateContent &shared );
GameClientState::ClientState Update( float deltaTime ) override;
void InitiatePlayer( int id, const std::string &modelName, const float position[3], const float rotation[4], const float scale[3], bool isMyPlayer );
2014-02-17 14:33:11 +01:00
void ReadKeyInput();
2014-02-13 15:21:02 +01:00
bool Render()override;
bool Release()override;
void ChangeState( ClientState next );
const NetEvent & DataRecieved( const NetEvent &message );
2014-02-13 15:21:02 +01:00
2014-02-12 09:02:44 +01:00
private:
2014-02-12 16:31:15 +01:00
struct MyData;
::Utility::DynamicMemory::UniquePointer<MyData> privData;
2014-02-12 09:02:44 +01:00
};
2014-02-13 15:21:02 +01:00
} }
#endif