Changeset 12018 for code/branches/PresentationFS18/src/modules/towerdefense
- Timestamp:
- May 30, 2018, 2:44:47 PM (7 years ago)
- Location:
- code/branches/PresentationFS18
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/PresentationFS18
- Property svn:mergeinfo changed
/code/branches/TowerDefense_FS18 (added) merged: 11818,11828,11830
- Property svn:mergeinfo changed
-
code/branches/PresentationFS18/src/modules/towerdefense/TowerDefense.cc
r11716 r12018 142 142 this->setLifes(100); 143 143 this->timeSinceLastSpawn_ = 0.0; 144 this->timeUntilNextWave_ = 5.0; 144 // Veraenderung1: timeuntilnextwave von 5.0 auf 1.0 abgesetzt 145 this->timeUntilNextWave_ = 1.0; 145 146 this->waveSize_ = 0; 146 147 this->setWaveNumber(0); … … 242 243 if (fields_[x][y]->isFree() == true && getCredit() >= cost) 243 244 { 244 payCredit(cost); 245 // Veraenderung 2 Paycredit von cost auf 0 gesetzt 246 payCredit(0); 245 247 fields_[x][y]->createTower(1); 246 248 } … … 261 263 if (fields_[x][y]->isFree() == false && fields_[x][y]->canUpgrade() == true && getCredit() >= cost) 262 264 { 263 payCredit(cost); 265 // Veraenderung 3 Paycredit von cost auf 0 gesetzt 266 payCredit(0); 264 267 fields_[x][y]->upgrade(); 265 268 } -
code/branches/PresentationFS18/src/modules/towerdefense/TowerDefenseEnemy.cc
r11099 r12018 48 48 if (getGame() && once_ == false && getHealth() <= 0) 49 49 { 50 50 51 getGame()->addCredit(1); 51 52 once_ = true;
Note: See TracChangeset
for help on using the changeset viewer.