Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 22, 2009, 9:59:34 PM (16 years ago)
Author:
landauf
Message:

moved gametype-HUD from PlayerInfo to HumanPlayer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/miniprojects/src/orxonox/objects/infos/HumanPlayer.h

    r2789 r2819  
    5151            void setClientID(unsigned int clientID);
    5252
     53            virtual void changedGametype();
    5354            virtual void changedControllableEntity();
    5455
     
    6364            inline const std::string& getHumanHUDTemplate() const
    6465                { return this->humanHudTemplate_; }
    65 
    6666            inline OverlayGroup* getHumanHUD() const
    6767                { return this->humanHud_; }
     68
     69            inline void setGametypeHUDTemplate(const std::string& name)
     70            {
     71                if (name != this->gametypeHudTemplate_)
     72                {
     73                    this->gametypeHudTemplate_ = name;
     74                    this->updateGametypeHUD();
     75                }
     76            }
     77            inline const std::string& getGametypeHUDTemplate() const
     78                { return this->gametypeHudTemplate_; }
     79            inline OverlayGroup* getGametypeHUD() const
     80                { return this->gametypeHud_; }
    6881
    6982        protected:
     
    7689
    7790            void updateHumanHUD();
     91            void updateGametypeHUD();
    7892
    7993            std::string nick_;
     
    8599            std::string humanHudTemplate_;
    86100            OverlayGroup* humanHud_;
     101            std::string gametypeHudTemplate_;
     102            OverlayGroup* gametypeHud_;
    87103    };
    88104}
Note: See TracChangeset for help on using the changeset viewer.