Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 19, 2011, 4:21:48 PM (13 years ago)
Author:
eceline
Message:

Space Race mit countdown

Location:
code/branches/spaceraceTwo/src/orxonox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/spaceraceTwo/src/orxonox/gametypes/Gametype.cc

    r8858 r8898  
    123123        if (this->gtinfo_->isStartCountdownRunning() && !this->gtinfo_->hasStarted())
    124124            this->gtinfo_->countdownStartCountdown(dt);
    125 
     125                       
    126126        if (!this->gtinfo_->hasStarted())
    127127        {
     
    129129            {
    130130                // Inform the GametypeInfo that the player is ready to spawn.
    131                 if(it->first->isHumanPlayer() && it->first->isReadyToSpawn())
     131                if(it->first->isHumanPlayer() && it->first->isReadyToSpawn()){
    132132                    this->gtinfo_->playerReadyToSpawn(it->first);
    133             }
    134                    
    135             this->checkStart();
     133                   
     134                }
     135            }
     136                 
     137                this->checkStart();
    136138        }
    137139        else if (!this->gtinfo_->hasEnded())
    138             this->spawnDeadPlayersIfRequested();
    139 
    140         this->assignDefaultPawnsIfNeeded();
     140           { this->spawnDeadPlayersIfRequested();
     141
     142        this->assignDefaultPawnsIfNeeded();}
    141143    }
    142144
  • code/branches/spaceraceTwo/src/orxonox/gametypes/Gametype.h

    r8706 r8898  
    156156            virtual void resetTimer(float t);
    157157
     158       
     159
    158160        protected:
    159161            virtual SpawnPoint* getBestSpawnPoint(PlayerInfo* player) const;
  • code/branches/spaceraceTwo/src/orxonox/infos/GametypeInfo.cc

    r8858 r8898  
    7171        this->bStarted_ = false;
    7272        this->bEnded_ = false;
    73         this->startCountdown_ = 0.0f;
     73        this->startCountdown_ = 10.0f;
    7474        this->bStartCountdownRunning_ = false;
    75         this->counter_ = 0;
     75        this->counter_ = 10;
    7676        this->spawned_ = false;
    7777        this->readyToSpawn_ = false;
Note: See TracChangeset for help on using the changeset viewer.