GameHelper.h
Go to the documentation of this file.00001 00011 #ifndef __GameHelper_H__ 00012 #define __GameHelper_H__ 00013 00014 // Includes 00015 #include "ArchiveManager.h" 00016 #include "InputManager.h" 00017 #include "Audio.h" 00018 #include "MusicManager.h" 00019 #include "SpriteSystem.h" 00020 #include "SpriteControllerManager.h" 00021 #include "ResourceManager.h" 00022 #include "GameStateManager.h" 00023 00024 // Forward declares 00025 class Screen; 00026 00027 // GameHelper 00028 class GameHelper 00029 { 00030 public: 00031 GameHelper(const char* applicationName); 00032 ~GameHelper(); 00033 00034 bool UpdateGame(float deltaTime, Screen& screen); 00035 private: 00036 // Create all the global systems we need - we just create them on the stack like this, as this will keep them 00037 // around until the game object is shut down, and since they are singletons, they are globally accessible anyway 00038 ArchiveManager archiveManager_; 00039 InputManager inputManager_; 00040 Audio audio_; 00041 MusicManager musicManager_; 00042 SpriteSystem spriteSystem_; 00043 SpriteControllerManager spriteControllerManager_; 00044 ResourceManager resourceManager_; 00045 GameStateManager gameStateManager_; 00046 00047 }; 00048 00049 #endif /* __GameHelper_H__ */
Reproduction/republishing of any material on this site without permission is strictly prohibited.
