Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11283 for code/branches


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

asdas

Location:
code/branches/SpaceRace_HS16/src
Files:
3 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}
  • code/branches/SpaceRace_HS16/src/orxonox/infos/Bot.cc

    r9667 r11283  
    6868        static const std::string names[] =
    6969        {
     70            "Berkay Berabi",
     71            "Louis  Meile"
    7072            "Dr. Julius No",
    7173            "Rosa Klebb",
  • code/branches/SpaceRace_HS16/src/orxonox/infos/GametypeInfo.h

    r11281 r11283  
    133133            void dispatchStaticMessage(const std::string& message,const ColourValue& colour) const;
    134134            void dispatchFadingMessage(const std::string& message) const;
     135            void setStartCountdown(float countdown); // Set the start countdown to the input value.
     136
    135137
    136138        protected:
    137139            void start(void); // Inform the GametypeInfo that the game has started.
    138140            void end(void); // Inform the GametypeInfo that the game has ended.
    139             void setStartCountdown(float countdown); // Set the start countdown to the input value.
    140141            void countdownStartCountdown(float countDown); // Count down the start countdown by the specified value.
    141142            void countDown(); // Count down the start countdown counter.
Note: See TracChangeset for help on using the changeset viewer.