GameApp.h
上传用户:zhj2929
上传日期:2022-07-23
资源大小:28772k
文件大小:1k
- #ifndef _GAMEAPP_H_
- #define _GAMEAPP_H_
- #define JGEApp_Title "Mario Demo"
- #include "../../JGE/include/JApp.h"
- #include "../../JGE/include/JGE.h"
- #include "../../JGE/include/JSprite.h"
- #define MAX_STATE 6
- class GameState;
- class GameApp: public JApp
- {
- private:
- GameState* mCurrentState;
- GameState* mNextState;
- GameState* mGameStates[MAX_STATE];
- public:
- GameApp(JGE *engine);
- virtual ~GameApp();
- virtual void Create();
- virtual void Destroy();
- virtual void Update();
- virtual void Render();
- void LoadGameStates();
- void LoadGameStateHelp();
- void LoadGameStateSplash();
- void setI(int j);
- void LoadGameStateEnd();
- void SetNextState(int state);
-
- };
- #endif