Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 13, 2017, 11:32:26 AM (8 years ago)
Author:
vyang
Message:

Kommentare

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Asteroid_HS17/src/modules/asteroids2D/Asteroids2DHUDinfo.cc

    r11645 r11669  
    2121 *
    2222 *   Author:
    23  *      Florian Zinggeler
     23 *      Viviane Yang
    2424 *
    2525 */
     
    4141
    4242        this->Asteroids2DGame = nullptr;
    43         //this->Ship = nullptr;
    4443        this->bShowPoints_ = true;
    45         this->bShowHealth_ = true;
    4644    }
    4745
     
    7775        }
    7876
    79         /*if(this->bShowHealth_)
    80         {
    81             const std::string& health = multi_cast<std::string>(this->Ship->getHealth());
    82             if (this->Asteroids2DGame->lives <= 0)
    83             {
    84                 setTextSize(0.2);
    85                 setPosition(Vector2(0.1, 0.02));
    86                 this->setCaption("Final score:\n" + health);
    87                 this->setColour(ColourValue(1, 0, 0, 1));
    88             }
    89             else
    90             {
    91                 setTextSize(0.04);
    92                 setPosition(Vector2(0.2, 0.02));
    93                 this->setColour(ColourValue(1, 1, 1, 1));
    94                 this->setCaption(health);
    95             }
    96         }*/
    9777    }
    9878
     
    10181        SUPER(Asteroids2DHUDinfo, changedOwner);
    10282
    103         if (this->getOwner() && this->getOwner()->getGametype())//&& this->getOwner->getPlayer())
     83        if (this->getOwner() && this->getOwner()->getGametype())
    10484        {
    10585            this->Asteroids2DGame = orxonox_cast<Asteroids2D*>(this->getOwner()->getGametype());
    106             //this->Ship = orxonox_cast<Asteroids2DShip*>(this->getOwner()->getPlayer());
     86
    10787        }
    10888        else
Note: See TracChangeset for help on using the changeset viewer.