- Timestamp:
- Dec 13, 2017, 11:32:26 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Asteroid_HS17/src/modules/asteroids2D/Asteroids2DHUDinfo.cc
r11645 r11669 21 21 * 22 22 * Author: 23 * Florian Zinggeler23 * Viviane Yang 24 24 * 25 25 */ … … 41 41 42 42 this->Asteroids2DGame = nullptr; 43 //this->Ship = nullptr;44 43 this->bShowPoints_ = true; 45 this->bShowHealth_ = true;46 44 } 47 45 … … 77 75 } 78 76 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 else90 {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 }*/97 77 } 98 78 … … 101 81 SUPER(Asteroids2DHUDinfo, changedOwner); 102 82 103 if (this->getOwner() && this->getOwner()->getGametype()) //&& this->getOwner->getPlayer())83 if (this->getOwner() && this->getOwner()->getGametype()) 104 84 { 105 85 this->Asteroids2DGame = orxonox_cast<Asteroids2D*>(this->getOwner()->getGametype()); 106 //this->Ship = orxonox_cast<Asteroids2DShip*>(this->getOwner()->getPlayer()); 86 107 87 } 108 88 else
Note: See TracChangeset
for help on using the changeset viewer.