Go to the documentation of this file.00001 #pragma once
00002 #include "glew.h"
00003 #include "GSingletonManager.h"
00004 #include "GKeyboardManager.h"
00005 #include "GMouseManager.h"
00006 #include "GSceneManager.h"
00007 #include "GWindowManager.h"
00008 #include "GKeyframeLoader.h"
00009 #include "GAnimationLoader.h"
00010 #include "GModelLoader.h"
00011 #include "GMesh.h"
00012 #include "GGame.h"
00013 #include "GAnimatedMesh.h"
00014 #include "GSkeleton.h"
00015 #include "GSkeletonLoader.h"
00016 #include "GShaderManager.h"
00017 #include "GShader.h"
00018 #include "GCamera.h"
00019 #include "Creature.h"
00020
00021 class GGame : public GSingletonManager<GGame>
00022 {
00023 protected:
00024 int WindowWidth;
00025 int WindowHeight;
00026 unsigned int Collectables;
00027 Gamestate GameState;
00028 int GameToggle;
00029 double time;
00030 double dtime;
00031
00032 public:
00033 int RandomTexId;
00034
00035 int Initialize(int width, int height, string title, bool fullscreen);
00036 int Load();
00037 int HandleInput(double time, double dtime, bool &CameraIsAttached);
00038 int HandleAI(double time, double dtime, int flags);
00039 int Update(double time, double dtime, int FLAGS);
00040 int RenderScene(double time, double dtime, int FLAGS);
00041 int Dispose();
00042 int FireGun(Creature *creature, double time, double dtime, int FLAGS);
00043 int GetHeight();
00044 int GetWidth();
00045 Gamestate GetGameState();
00046 void SetGameState(Gamestate state);
00047 int *GetGameToggle();
00048 double GetTime(void);
00049 double GetDTime(void);
00050 };