27 lines
679 B
C++
27 lines
679 B
C++
#ifndef StateGame_h__
|
|
#define StateGame_h__
|
|
|
|
#include "IGameState.h"
|
|
#include "ActionBuffer.h"
|
|
class MyGame;
|
|
|
|
class StateGame : public IGameState
|
|
{
|
|
public:
|
|
StateGame(const String& name, MyGame* engine);
|
|
void Update();
|
|
void Render();
|
|
void OnEnter();
|
|
void OnLeave();
|
|
void ProcessCmd(const String& cmd, void* params);
|
|
|
|
bool KeyDown( Core::Key key, unsigned int text, const std::string& str );
|
|
bool KeyUp( Core::Key key, unsigned int text, const std::string& str );
|
|
bool MouseMove( int absX, int relX, int absY, int relY);
|
|
bool MousePressed(int buttonId);
|
|
bool MouseReleased(int buttonId);
|
|
private:
|
|
MyGame* pGame;
|
|
ActionBuffer playerActions;
|
|
};
|
|
#endif // StateGame_h__
|