Sky Zone Omega - PC Version
 All Classes Namespaces Files Functions Variables Macros
G_SpawnManager.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../Enitites/E_EntityManager.h"
4 #include "../Core/C_Timer.h"
5 
11 {
12 public:
21 
26 
31  void update(float dt);
32 
33 private:
45  float waveTime;
48 
52  void spawnEntityWave();
53 
58  int pickEntity();
59 
65  std::string getEntityID(int entityType);
66 
72  void spawnEntity(float spawnY, int entityToSpawn);
73 };
void spawnEntityWave()
A function to spawn a new wave of Entities.
Definition: G_SpawnManager.cpp:40
G_SpawnManager(C_Vec2 screenDimensions, EP_Player *player, E_EntityManager *entityManager, float *universalSpeed)
Constructs the SpawnManager.
Definition: G_SpawnManager.cpp:3
EP_Player * player
A pointer to the Player.
Definition: G_SpawnManager.h:37
E_EntityManager * entityManager
A pointer to the EntityManager.
Definition: G_SpawnManager.h:39
std::string getEntityID(int entityType)
A function to get the ID of the entity type.
Definition: G_SpawnManager.cpp:158
void update(float dt)
A function to update the SpawnManager.
Definition: G_SpawnManager.cpp:13
Contains the Vec2 structure with functions and overloaded operators.
Definition: C_Vec2.h:7
A class that manages all of the entities in the game with the exception of the player.
Definition: E_EntityManager.h:27
int pickEntity()
A function to pick a new Entity type.
Definition: G_SpawnManager.cpp:72
Contains the data and functions for the player.
Definition: EP_Player.h:16
C_Vec2 screenDimensions
The screen dimensions.
Definition: G_SpawnManager.h:35
A class that manages the spawning of the entities in the game.
Definition: G_SpawnManager.h:10
~G_SpawnManager()
Destructs the SpawnManager.
Definition: G_SpawnManager.cpp:9
Handles timer functions.
Definition: C_Timer.h:7
void spawnEntity(float spawnY, int entityToSpawn)
A function to spawn a new Entity.
Definition: G_SpawnManager.cpp:196
float * universalSpeed
A pointer for the universal speed of the game.
Definition: G_SpawnManager.h:47
C_Timer spawnTimer
A timer for the entity spawner.
Definition: G_SpawnManager.h:41
C_Timer waveTimer
A timer for the wave number.
Definition: G_SpawnManager.h:43
float waveTime
The current spawn speed for the wave.
Definition: G_SpawnManager.h:45