Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 14, 2016, 2:34:29 PM (8 years ago)
Author:
bberabi
Message:

asdas

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/SpaceRace_HS16/src/modules/gametypes/SpaceRace.cc

    r11281 r11283  
    7979    {
    8080        Gametype::start();
    81 
    8281   if (true)
    8382        {
     
    138137
    139138
    140         // spawns the players when the countdown starts, but deactivates their engines
     139       /* // spawns the players when the countdown starts, but deactivates their engines
    141140        if (this->isStartCountdownRunning() && !this->cantMove_)
    142141        {
     
    149148
    150149
    151 gtInfo_->setStartCountdown(10.0);
     150gtinfo_->setStartCountdown(50.0);
    152151   
    153152       
    154             /*this->spawnPlayersIfRequested();
    155             this->cantMove_ = true;
    156 
    157             for (Engine* engine : ObjectList<Engine>()){
    158                 engine->setActive(false);
    159                 }
    160 
    161            
    162            
    163          std::string message("BE FAST BE FIRST");
    164         this->getGametypeInfo()->sendAnnounceMessage(message);
    165         ChatManager::message(message);
    166 
    167 Timer* countdownTimer = new Timer();
    168         countdownTimer->setTimer(11, false, createExecutor(createFunctor(&SpaceRace::countdownFinished, this)));*/
    169153
    170154
     
    187171            this->getGametypeInfo()->sendAnnounceMessage(message);
    188172            ChatManager::message(message);
    189         }
     173        }*/
    190174   
    191175}
     
    199183        int ms = this->clock_.getMilliseconds() % 1000;
    200184
    201         const std::string& message = "Checkpoint " + multi_cast<std::string>(checkpoint->getCheckpointIndex() + 1)
    202             + " reached after " + multi_cast<std::string>(s) + "." + multi_cast<std::string>(ms) + " seconds.";
    203         this->getGametypeInfo()->sendAnnounceMessage(message);
    204         ChatManager::message(message);
     185       
     186   
     187        const std::string& message = player->getName() + "reached the checkpoint " + multi_cast<std::string>(checkpoint->getCheckpointIndex() + 1)
     188        + "after " + multi_cast<std::string>(s) + "." + multi_cast<std::string>(ms) + " seconds.";
     189 this->getGametypeInfo()->sendAnnounceMessage(message);
     190        ChatManager::message(message);
     191
    205192    }
    206193
     
    215202    for (Engine* engine : ObjectList<Engine>())
    216203                engine->setActive(true);
     204
     205
    217206   
    218207}
Note: See TracChangeset for help on using the changeset viewer.