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

Description for creating new towers. More...

#include <tower.h>

Public Member Functions

 TowerType (const std::string &name, int cost, int damage, double attack_range, double attack_speed)
 
 ~TowerType ()
 Destroy the object.
 
std::string name () const
 
const int cost () const
 
const int damage () const
 
std::vector< TowerType * > upgrade_options () const
 
const double attack_range () const
 
const double attack_speed () const
 
void add_upgrade_option (TowerType *tower_type)
 Add new upgrade option.
 
Towercreate_tower (double x, double y)
 Create new tower of this type.
 

Detailed Description

Description for creating new towers.


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