All Data Structures Files Functions Variables Enumerations Enumerator Properties Defines
/Projects/Cogito/src/Singletons/GameManager.h
Go to the documentation of this file.
00001 //
00002 //  GameManager.h
00003 //  Author: Thomas Taylor
00004 //
00005 //  Manages the scenes in the game
00006 //
00007 //  15/12/2011: Created class
00008 //
00009 
00010 #import "cocos2d.h"
00011 #import "CommonDataTypes.h"
00012 #import <Foundation/Foundation.h>
00013 #import "Level.h"
00014 
00015 @interface GameManager : NSObject
00016 
00017 {
00018     CCArray* levelData;
00019     Difficulty levelDifficulty;
00020     SceneTypes currentScene;
00021     Level* currentLevel;
00022     BOOL gamePaused;
00023     BOOL debug;
00024 }
00025 
00026 @property (readonly) SceneTypes currentScene;
00027 @property (readwrite, retain) Level* currentLevel;
00028 @property (readwrite) BOOL gamePaused;
00029 @property (readwrite) BOOL debug;
00030 
00031 +(GameManager*)sharedGameManager;
00032 -(void)loadLevelData;
00033 -(void)loadRandomLevel;
00034 -(void)runSceneWithID:(SceneTypes)_sceneID;
00035 -(void)pauseGame;
00036 -(void)resumeGame;
00037 -(void)incrementSecondCounter;
00038 -(void)resetSecondCounter;
00039 -(NSString*)getGameTimeInMins;
00040 -(int)getGameTimeInSecs;
00041 -(void)setLevelDifficulty:(Difficulty)_difficulty;
00042 
00043 @end