1 #ifndef GAMEMANAGER_HPP
2 #define GAMEMANAGER_HPP
8 #define ENEMY_FREEZE_TIME 3000
11 #define ENEMY_FREEZE_COOLDOWN 5000
55 unsigned int lastTime;
Definition: TickTimer.hpp:7
int lastFrozen
Definition: GameManager.hpp:48
void UnfreezeEnemies()
Unfreezes all enemies in the game.
Definition: GameManager.cpp:63
void FreezeEnemies()
Freezes all enemies in the game.
Definition: GameManager.cpp:56
unsigned int GetMSElapsed()
Return the amount of time that this game has been running for.
Definition: GameManager.cpp:49
bool IsGameOver()
Return whether the game has ended.
Definition: GameManager.cpp:41
void Update()
Definition: GameManager.cpp:29
void shutdown()
Close the game and cleanup references.
Definition: GameManager.cpp:25
void init()
Initialize the singleton GameManager.
Definition: GameManager.cpp:18
static GameManager & getInstance()
Return the singleton to represent the state of the game.
Definition: GameManager.cpp:13
void GameLost()
If the game is not already lost, it is ended when this function is called.
Definition: GameManager.cpp:45
~GameManager()
Definition: GameManager.cpp:7
Definition: GameManager.hpp:14
bool enemiesFrozen
Return whether all enemies are frozen.
Definition: GameManager.hpp:46