Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 30, 2018, 2:44:47 PM (6 years ago)
Author:
patricwi
Message:

Merged TowerDefense

Location:
code/branches/PresentationFS18
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/PresentationFS18

  • code/branches/PresentationFS18/src/modules/towerdefense/TowerDefense.cc

    r11716 r12018  
    142142        this->setLifes(100);       
    143143        this->timeSinceLastSpawn_ = 0.0;
    144         this->timeUntilNextWave_ = 5.0;
     144        // Veraenderung1: timeuntilnextwave von 5.0 auf 1.0 abgesetzt
     145        this->timeUntilNextWave_ = 1.0;
    145146        this->waveSize_ = 0;
    146147        this->setWaveNumber(0);
     
    242243        if (fields_[x][y]->isFree() == true && getCredit() >= cost)
    243244        {
    244             payCredit(cost);
     245            // Veraenderung 2 Paycredit von cost auf 0 gesetzt
     246            payCredit(0);
    245247            fields_[x][y]->createTower(1);
    246248        }
     
    261263        if (fields_[x][y]->isFree() == false && fields_[x][y]->canUpgrade() == true && getCredit() >= cost)
    262264        {
    263             payCredit(cost);
     265             // Veraenderung 3 Paycredit von cost auf 0 gesetzt
     266            payCredit(0);
    264267            fields_[x][y]->upgrade();
    265268        }
Note: See TracChangeset for help on using the changeset viewer.