Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 16, 2009, 2:11:14 AM (15 years ago)
Author:
landauf
Message:
  • Moved default-hud (chat, gamestate info) from Controller to HumanPlayer
  • Added support for a Gametype-HUD to Gametype and PlayerInfo
File:
1 edited

Legend:

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

    r2662 r2789  
    5151            void setClientID(unsigned int clientID);
    5252
    53             virtual void changedController();
     53            virtual void changedControllableEntity();
     54
     55            inline void setHumanHUDTemplate(const std::string& name)
     56            {
     57                if (name != this->humanHudTemplate_)
     58                {
     59                    this->humanHudTemplate_ = name;
     60                    this->updateHumanHUD();
     61                }
     62            }
     63            inline const std::string& getHumanHUDTemplate() const
     64                { return this->humanHudTemplate_; }
     65
     66            inline OverlayGroup* getHumanHUD() const
     67                { return this->humanHud_; }
    5468
    5569        protected:
     
    6175            void networkcallback_client_initialized();
    6276
     77            void updateHumanHUD();
     78
    6379            std::string nick_;
    6480            std::string synchronize_nick_;
     
    6682            bool server_initialized_;
    6783            bool client_initialized_;
     84
     85            std::string humanHudTemplate_;
     86            OverlayGroup* humanHud_;
    6887    };
    6988}
Note: See TracChangeset for help on using the changeset viewer.