1 #ifndef TOWER_DEFENCE_2_LEVEL_H 2 #define TOWER_DEFENCE_2_LEVEL_H 6 #include "objects/tower.h" 11 typedef std::vector<std::pair<double, EnemyType *>> EnemySpawnInterval;
18 EnemySpawnInterval &enemy_spawn_interval);
41 const int m_initial_money;
42 const int m_initial_lives;
45 int m_enemies_spawned;
47 const EnemySpawnInterval m_enemy_spawn_interval;
52 #endif //TOWER_DEFENCE_2_LEVEL_H bool done()
True if all enemies have spawned else false.
Definition: level.cpp:37
int initial_lives() const
Definition: level.cpp:15
int initial_money() const
Definition: level.cpp:11
std::vector< EnemyType * > spawn_enemies(double time)
Definition: level.cpp:23
int enemies_spawned() const
Count of how many enemies have spawned.
Definition: level.cpp:19