Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 22, 2018, 1:51:59 PM (7 years ago)
Author:
skaeser
Message:

kredit nicht mehr abgezogen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/TowerDefense_FS18/src/modules/towerdefense/TowerDefense.cc

    r11716 r11828  
    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.