- Timestamp:
- May 17, 2018, 4:14:35 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/3DPacman_FS18/src/modules/pacman/PacmanHUDinfo.cc
r11961 r11976 68 68 if (this->PacmanGame) 69 69 { 70 if(this->bShowPoints_){ 70 bool death = this->PacmanGame->isdead(); 71 if(death){ 72 bShowPoints_ = false; 73 bShowGhoststatus_ = false; 74 const std::string& deathmessage = "Game Over"; 75 setTextSize(0.4); 76 this->setCaption(deathmessage); 77 } 78 79 if(this->bShowPoints_ && !death) { 71 80 const std::string& points = "Collected points: "+multi_cast<std::string>(this->PacmanGame->getPoints()) + " of " + multi_cast<std::string>(this->PacmanGame->totallevelpoint); 72 81 setTextSize(0.04); 73 82 this->setCaption(points); 74 } 75 if(this->bShowGhoststatus_){ 83 } 84 85 if(this->bShowGhoststatus_ && !death){ 76 86 const std::string& ghoststatus = "Do not get caught!"; 77 //if(this->PacmanGame->afraid) const std::string& ghoststatus = "Catch the ghosts!"; 78 orxout() << "Test Hier" << endl; 87 if(this->PacmanGame->afraid) const std::string& ghoststatus = "Catch the ghosts!"; 79 88 setTextSize(0.04); 80 89 this->setCaption(ghoststatus); 81 90 } 82 91 } 83 92 }
Note: See TracChangeset
for help on using the changeset viewer.