Changeset 10335 for code/branches/towerdefenseFS15/src
- Timestamp:
- Mar 26, 2015, 3:26:26 PM (10 years ago)
- Location:
- code/branches/towerdefenseFS15/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/towerdefenseFS15/src/modules/towerdefense/TowerDefense.cc
r10325 r10335 154 154 //set initial credits, lifes and WaveNumber 155 155 this->setCredit(1000); 156 this->setLifes( 25);156 this->setLifes(100); 157 157 this->setWaveNumber(0); 158 158 time=0.0; … … 194 194 } 195 195 196 en1->setTeam(2); 196 197 en1->getController(); 197 198 en1->setPosition(path.at(0)->get3dcoordinate()); … … 276 277 towermatrix [x][y]=true; 277 278 279 //Create Model 280 Model* newtowermodel = new Model(this->center_->getContext()); 281 newtowermodel->setMeshSource("Tower.mesh"); 282 newtowermodel->setScale(45); 283 newtowermodel->setPosition(static_cast<float>((x-8) * tileScale), static_cast<float>((y-8) * tileScale), 50); 284 285 286 278 287 //Creates tower 279 288 TowerDefenseTower* towernew = new TowerDefenseTower(this->center_->getContext()); 280 towernew->setPosition(static_cast<float>((x-8) * tileScale), static_cast<float>((y-8) * tileScale), 75);289 towernew->setPosition(static_cast<float>((x-8) * tileScale), static_cast<float>((y-8) * tileScale), 275); 281 290 towernew->setGame(this); 291 towernew->setTeam(1); 282 292 } 283 293 -
code/branches/towerdefenseFS15/src/modules/towerdefense/TowerDefenseTower.cc
r10325 r10335 41 41 } 42 42 43 /* 43 44 void TowerDefenseTower::setOrientation(const Quaternion& orientation) 44 45 { … … 56 57 { 57 58 } 59 */ 58 60 59 61 bool TowerDefenseTower::upgradeTower() -
code/branches/towerdefenseFS15/src/modules/towerdefense/TowerDefenseTower.h
r10319 r10335 38 38 39 39 // Overriding these to stop TowerDefenseTowers from spasing out 40 /* 40 41 void setOrientation(const Quaternion& orientation); 41 42 virtual void rotateYaw(const Vector2& value); 42 43 virtual void rotatePitch(const Vector2& value); 43 44 virtual void rotateRoll(const Vector2& value); 45 */ 44 46 virtual bool upgradeTower(); 45 47 -
code/branches/towerdefenseFS15/src/orxonox/controllers/FormationController.cc
r9800 r10335 956 956 bool FormationController::sameTeam(ControllableEntity* entity1, ControllableEntity* entity2, Gametype* gametype) 957 957 { 958 959 958 960 if (entity1 == entity2) 959 961 return true;
Note: See TracChangeset
for help on using the changeset viewer.