Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 14, 2018, 1:08:06 PM (6 years ago)
Author:
dreherm
Message:

HUD work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/3DPacman_FS18/src/modules/pacman/PacmanHUDinfo.cc

    r11958 r11961  
    4545        this->bShowPoints_ = false;
    4646        this->bShowMessage_ = false;
     47        this->bShowGhoststatus_ = false;
    4748        this->messageID = 0;
     49
    4850    }
    4951
     
    5456        XMLPortParam(PacmanHUDinfo, "showpoints",    setShowPoints,    getShowPoints,    xmlelement, mode).defaultValues(false);
    5557        XMLPortParam(PacmanHUDinfo, "showmessage",   setShowMessage,   getShowMessage,   xmlelement, mode).defaultValues(false);
     58        XMLPortParam(PacmanHUDinfo, "showghoststatus",   setGhoststatus,   getGhoststatus,   xmlelement, mode).defaultValues(false);
    5659        XMLPortParam(PacmanHUDinfo, "messageID",     setMessageID,     getMessageID,     xmlelement, mode).defaultValues(0);
    5760       
     
    6669        {
    6770                if(this->bShowPoints_){
    68                     const std::string& points = "Score: "+multi_cast<std::string>(this->PacmanGame->getPoints());
     71                    const std::string& points = "Collected points: "+multi_cast<std::string>(this->PacmanGame->getPoints()) + " of " + multi_cast<std::string>(this->PacmanGame->totallevelpoint);
    6972                    setTextSize(0.04);
    7073                    this->setCaption(points);
     74                }
     75                if(this->bShowGhoststatus_){
     76                    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;
     79                    setTextSize(0.04);
     80                    this->setCaption(ghoststatus);
    7181                }
    7282        }
Note: See TracChangeset for help on using the changeset viewer.