Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 24, 2018, 3:03:31 PM (6 years ago)
Author:
arismu
Message:

messages

File:
1 edited

Legend:

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

    r11982 r11986  
    142142        }
    143143
    144         std::string message("Use headphones to hear the countdown! Press W for forward acceleration, W+space bar for boost!");
     144        std::string message("Use headphones to hear the countdown! Press W for forward acceleration, press W+space for boost!");
    145145
    146146        this->getGametypeInfo()->sendAnnounceMessage(message);
     
    191191        int ms = static_cast<int>(this->clock_.getMilliseconds() - 1000*s);
    192192        std::string message;
    193         message = multi_cast<std::string>(s)+"You could not reach the last checkpoint before your opponents. YOU LOOSE!";
    194 
    195193        if (this->bTimeIsUp_)
    196194        {
     
    198196                        + "You loose!";
    199197        }
     198       else if(this->bLost){
     199            message = multi_cast<std::string>(s)+"You could not reach the last checkpoint before your opponents. YOU LOOSE!";
     200
     201       }       
    200202       
    201203        else
     
    207209        if (!this->hasEnded())
    208210        {
     211
    209212            this->getGametypeInfo()->sendAnnounceMessage(message);
    210213            ChatManager::message(message);
     
    222225
    223226       
    224    
    225         const std::string& message = player->getName() + " reached the checkpoint " + multi_cast<std::string>(checkpoint->getCheckpointIndex() + 1)
     227        std::string message(player->getName() + " reached the checkpoint " + multi_cast<std::string>(checkpoint->getCheckpointIndex() + 1)
     228        + " after " + multi_cast<std::string>(s) + "." + multi_cast<std::string>(ms) + " seconds.");
     229
     230        this->getGametypeInfo()->sendAnnounceMessage(message);
     231        ChatManager::message(message);
     232      /*  const std::string& message = player->getName() + " reached the checkpoint " + multi_cast<std::string>(checkpoint->getCheckpointIndex() + 1)
    226233        + "after " + multi_cast<std::string>(s) + "." + multi_cast<std::string>(ms) + " seconds.";
    227234        this->getGametypeInfo()->sendAnnounceMessage(message);
    228         ChatManager::message(message);
    229         if(checkpoint->getCheckpointIndex()==20){
     235        ChatManager::message(message);*/
     236        if(checkpoint->getCheckpointIndex()==19){
    230237             const std::string& message = player->getName() + " reached the checkpoint " + multi_cast<std::string>(checkpoint->getCheckpointIndex() + 1)
    231238                + "after " + multi_cast<std::string>(s) + "." + multi_cast<std::string>(ms) + " seconds and WON THE GAME.";
Note: See TracChangeset for help on using the changeset viewer.