This commit is contained in:
2025-05-13 02:46:21 +03:00
parent 143e16692e
commit 86914b7fcc
610 changed files with 92343 additions and 2 deletions
+27
View File
@@ -0,0 +1,27 @@
#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__