#include <GameManager.hpp>
◆ GameManager()
GameManager::GameManager |
( |
| ) |
|
|
inline |
◆ ~GameManager()
GameManager::~GameManager |
( |
| ) |
|
|
inline |
◆ AddCollectible()
void GameManager::AddCollectible |
( |
GameObject * |
collectible | ) |
|
◆ AddEnemy()
◆ NumCollectibles()
int GameManager::NumCollectibles |
( |
| ) |
|
Gets the number of collectibles in the scene.
◆ NumEnemies()
int GameManager::NumEnemies |
( |
| ) |
|
Gets the number of enemies in the scene.
◆ Render()
void GameManager::Render |
( |
| ) |
|
Renders the text for the score
◆ SaveCollectibles()
void GameManager::SaveCollectibles |
( |
const char * |
filename | ) |
|
Saves the types and positions of all collectibles in the level to a file.
◆ SaveEnemies()
void GameManager::SaveEnemies |
( |
const char * |
filename | ) |
|
Saves the types and positions of all enemies in the level to a file.
◆ Start() [1/2]
Is the actuily constructor for Game Manager player: The playble chacters Game object tilemap: The tilemap component for the world fruits: A vector list of all the Fruits game object Ai: A vector of all the Eniemies in the world m_renderer: The game renderers
◆ Start() [2/2]
void GameManager::Start |
( |
GameObject * |
player, |
|
|
TileMap * |
tileMap, |
|
|
SDL_Renderer * |
m_renderer |
|
) |
| |
◆ Stop()
void GameManager::Stop |
( |
| ) |
|
Makes sure that ttf is correctly removed.
◆ Update()
void GameManager::Update |
( |
| ) |
|
Checks to see if there is collisions bewteen player and Fruits and player and Ai Also increaments score based off collisions with fruits and removes wall segments based of score
◆ Ai
Vector of all the Ais in the current Level
◆ Fruits
Vector of all the Fruits gameobjects in the level
The documentation for this class was generated from the following files: