30 #ifndef _TowerDefenseCenterpoint_H__ 31 #define _TowerDefenseCenterpoint_H__ 59 { this->width_ = width; }
61 {
return this->width_; }
63 { this->height_ = height; }
65 {
return this->height_; }
67 { this->fields_ = newFields; trimString(&fields_); }
69 {
return this->fields_; }
71 { this->selecterTemplate_ = newTemplate; }
73 {
return this->selecterTemplate_; }
76 { this->towerTemplates_[0] = newTemplate;}
78 {
return this->towerTemplates_[0]; }
80 { this->towerTemplates_[1] = newTemplate; }
82 {
return this->towerTemplates_[1]; }
84 { this->towerTemplates_[2] = newTemplate; }
86 {
return this->towerTemplates_[2]; }
88 { this->towerTemplates_[3] = newTemplate; }
90 {
return this->towerTemplates_[3]; }
92 { this->towerTemplates_[4] = newTemplate; }
94 {
return this->towerTemplates_[4]; }
97 { this->towerCosts_[0] = newCost;}
99 {
return this->towerCosts_[0]; }
101 { this->towerCosts_[1] = newCost; }
103 {
return this->towerCosts_[1]; }
105 { this->towerCosts_[2] = newCost; }
107 {
return this->towerCosts_[2]; }
109 { this->towerCosts_[3] = newCost; }
111 {
return this->towerCosts_[3]; }
113 { this->towerCosts_[4] = newCost; }
115 {
return this->towerCosts_[4]; }
117 const int getTowerCost(
int upgrade)
const;
124 { this->tileScale_ = tileScale; }
127 {
return this->tileScale_; }
130 void checkGametype();
void setTower5Template(const std::string &newTemplate)
Definition: TowerDefenseCenterpoint.h:91
void setTower1Template(const std::string &newTemplate)
Definition: TowerDefenseCenterpoint.h:75
void setFields(const std::string &newFields)
Definition: TowerDefenseCenterpoint.h:66
Shared library macros, enums, constants and forward declarations for the TowerDefense module ...
void setTower3Template(const std::string &newTemplate)
Definition: TowerDefenseCenterpoint.h:83
::std::string string
Definition: gtest-port.h:756
const std::string & getSelecterTemplate() const
Definition: TowerDefenseCenterpoint.h:72
virtual ~TowerDefenseCenterpoint()
Definition: TowerDefenseCenterpoint.h:51
const std::string & getFields() const
Definition: TowerDefenseCenterpoint.h:68
void setTileScale(unsigned int tileScale)
How to convert to world coordinates, e.g.
Definition: TowerDefenseCenterpoint.h:123
unsigned int getTileScale(void) const
Definition: TowerDefenseCenterpoint.h:126
void setWidth(unsigned int width)
The width and hight in number of tiles.
Definition: TowerDefenseCenterpoint.h:58
std::string selecterTemplate_
Definition: TowerDefenseCenterpoint.h:132
unsigned int getWidth(void) const
Definition: TowerDefenseCenterpoint.h:60
void setSelecterTemplate(const std::string &newTemplate)
Definition: TowerDefenseCenterpoint.h:70
unsigned int getHeight(void) const
Definition: TowerDefenseCenterpoint.h:64
xmlelement
Definition: Super.h:519
const std::string & getTower2Template() const
Definition: TowerDefenseCenterpoint.h:81
Declaration and implementation of several math-functions, typedefs of some Ogre::Math classes to the ...
const std::string & getTower3Template() const
Definition: TowerDefenseCenterpoint.h:85
The MobileEntity is a derived class from orxonox::WorldEntity and orxonox::Tickable.
Definition: MobileEntity.h:53
void setTower5Cost(const int &newCost)
Definition: TowerDefenseCenterpoint.h:112
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
unsigned int width_
Definition: TowerDefenseCenterpoint.h:136
void setTower2Template(const std::string &newTemplate)
Definition: TowerDefenseCenterpoint.h:79
Mode
Definition: CorePrereqs.h:102
void setTower4Cost(const int &newCost)
Definition: TowerDefenseCenterpoint.h:108
const std::string & getTower5Template() const
Definition: TowerDefenseCenterpoint.h:93
unsigned int height_
Definition: TowerDefenseCenterpoint.h:137
const int & getTower4Cost() const
Definition: TowerDefenseCenterpoint.h:110
unsigned int tileScale_
Definition: TowerDefenseCenterpoint.h:138
std::string fields_
Definition: TowerDefenseCenterpoint.h:135
void setTower3Cost(const int &newCost)
Definition: TowerDefenseCenterpoint.h:104
#define _TowerDefenseExport
Definition: TowerDefensePrereqs.h:58
const std::string & getTower4Template() const
Definition: TowerDefenseCenterpoint.h:89
const std::string & getTower1Template() const
Definition: TowerDefenseCenterpoint.h:77
const int & getTower2Cost() const
Definition: TowerDefenseCenterpoint.h:102
void setTower4Template(const std::string &newTemplate)
Definition: TowerDefenseCenterpoint.h:87
void setHeight(unsigned int height)
Definition: TowerDefenseCenterpoint.h:62
void setTower2Cost(const int &newCost)
Definition: TowerDefenseCenterpoint.h:100
const int & getTower1Cost() const
Definition: TowerDefenseCenterpoint.h:98
const int & getTower3Cost() const
Definition: TowerDefenseCenterpoint.h:106
const int & getTower5Cost() const
Definition: TowerDefenseCenterpoint.h:114
See TowerDefenseReadme.txt for Information.
Definition: TowerDefenseCenterpoint.h:47
void setTower1Cost(const int &newCost)
Definition: TowerDefenseCenterpoint.h:96