- Timestamp:
- Dec 30, 2015, 2:31:14 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/towerdefense/TowerDefenseField.cc
r10765 r10999 50 50 51 51 tower_ = nullptr; 52 type_ = FREE;52 type_ = TowerDefenseFieldType::FREE; 53 53 center_ = nullptr; 54 54 upgrade_ = 0; … … 186 186 modelGround_->setMeshSource("TD_F1.mesh"); 187 187 tower_ = nullptr; 188 type_ = FREE;188 type_ = TowerDefenseFieldType::FREE; 189 189 setUpgrade(0); 190 190 setAngle(orientation); … … 195 195 modelGround_->setMeshSource("TD_S5.mesh"); 196 196 tower_ = nullptr; 197 type_ = START;197 type_ = TowerDefenseFieldType::START; 198 198 setUpgrade(0); 199 199 setAngle(orientation); … … 205 205 modelGround_->setMeshSource("TD_S4.mesh"); 206 206 tower_ = nullptr; 207 type_ = END;207 type_ = TowerDefenseFieldType::END; 208 208 setUpgrade(0); 209 209 setAngle(orientation); … … 214 214 modelGround_->setMeshSource("TD_S1.mesh"); 215 215 tower_ = nullptr; 216 type_ = STREET;216 type_ = TowerDefenseFieldType::STREET; 217 217 setUpgrade(0); 218 218 setAngle(orientation); … … 223 223 modelGround_->setMeshSource("TD_S2.mesh"); 224 224 tower_ = nullptr; 225 type_ = STREET;225 type_ = TowerDefenseFieldType::STREET; 226 226 setUpgrade(0); 227 227 setAngle(orientation); … … 232 232 modelGround_->setMeshSource("TD_S3.mesh"); 233 233 tower_ = nullptr; 234 type_ = STREET;234 type_ = TowerDefenseFieldType::STREET; 235 235 setUpgrade(0); 236 236 setAngle(orientation); … … 242 242 modelObject_->setMeshSource("TD_O1.mesh"); 243 243 tower_ = nullptr; 244 type_ = OBSTACLE;244 type_ = TowerDefenseFieldType::OBSTACLE; 245 245 setUpgrade(0); 246 246 setAngle(orientation); … … 254 254 tower_ = new TowerDefenseTower(center_->getContext()); 255 255 attach(tower_); 256 type_ = T OWER;256 type_ = TowerDefenseFieldType::TOWER; 257 257 setUpgrade(upgrade); 258 258 if (upgrade_ > 0 && modelObject_ != nullptr)
Note: See TracChangeset
for help on using the changeset viewer.