Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11989


Ignore:
Timestamp:
May 24, 2018, 3:20:52 PM (6 years ago)
Author:
andera
Message:

new headlines at the beginning of the game

File:
1 edited

Legend:

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

    r11986 r11989  
    224224        int ms = this->clock_.getMilliseconds() % 1000;
    225225
    226        
     226       if(checkpoint->getCheckpointIndex()==18){
     227             const std::string& message = player->getName() + "reached the last checkpoint after "
     228                + multi_cast<std::string>(s) + "." + multi_cast<std::string>(ms) + " seconds and WON THE GAME.";
     229
     230        }
    227231        std::string message(player->getName() + " reached the checkpoint " + multi_cast<std::string>(checkpoint->getCheckpointIndex() + 1)
    228232        + " after " + multi_cast<std::string>(s) + "." + multi_cast<std::string>(ms) + " seconds.");
     
    234238        this->getGametypeInfo()->sendAnnounceMessage(message);
    235239        ChatManager::message(message);*/
    236         if(checkpoint->getCheckpointIndex()==19){
    237              const std::string& message = player->getName() + " reached the checkpoint " + multi_cast<std::string>(checkpoint->getCheckpointIndex() + 1)
    238                 + "after " + multi_cast<std::string>(s) + "." + multi_cast<std::string>(ms) + " seconds and WON THE GAME.";
    239 
    240         }
     240       
    241241
    242242    }
     
    245245    {
    246246
    247         std::string message("RACE STARTED ");
    248         this->getGametypeInfo()->sendAnnounceMessage(message);
    249         ChatManager::message(message);
    250 
     247        std::string message("RACE STARTED");
     248        this->getGametypeInfo()->sendAnnounceMessage(message);
     249        ChatManager::message(message);
     250       
     251        std::string message2("Press W for forward acceleration, press W+space for boost!");
     252        this->getGametypeInfo()->sendAnnounceMessage(message2);
     253        ChatManager::message(message2);
    251254
    252255        for (Engine* engine : ObjectList<Engine>())
Note: See TracChangeset for help on using the changeset viewer.