Tower Defence 2
Public Member Functions | List of all members
GameLevel Class Reference

#include <level.h>

Public Member Functions

 GameLevel (int initial_money, int initial_lives, int enemies_spawned, EnemySpawnInterval &enemy_spawn_interval)
 
int initial_money () const
 
int initial_lives () const
 
int enemies_spawned () const
 Count of how many enemies have spawned.
 
std::vector< EnemyType * > spawn_enemies (double time)
 
bool done ()
 True if all enemies have spawned else false.
 

Detailed Description

Contains information to start and run different game levels. What types of enemies will spawn, when and where.

Member Function Documentation

int GameLevel::initial_lives ( ) const

Initial money

Returns
int GameLevel::initial_money ( ) const

Initial money

Returns
std::vector< EnemyType * > GameLevel::spawn_enemies ( double  time)

Spawn new enemies according to game time

Parameters
time
Returns
Collection of enemy type pointers to use for spawning new enemies.

The documentation for this class was generated from the following files: