- Timestamp:
- Mar 16, 2009, 2:11:14 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/miniprojects/src/orxonox/objects/infos/PlayerInfo.h
r2662 r2789 49 49 virtual void changedGametype(); 50 50 51 virtual void changedController() {} 52 virtual void changedControllableEntity(); 53 51 54 inline bool isHumanPlayer() const 52 55 { return this->bHumanPlayer_; } … … 73 76 inline Controller* getController() const 74 77 { return this->controller_; } 75 virtual void changedController() {} 78 79 inline void setGametypeHUDTemplate(const std::string& name) 80 { 81 if (name != this->gametypeHudTemplate_) 82 { 83 this->gametypeHudTemplate_ = name; 84 this->updateGametypeHUD(); 85 } 86 } 87 inline const std::string& getGametypeHUDTemplate() const 88 { return this->gametypeHudTemplate_; } 89 90 inline OverlayGroup* getGametypeHUD() const 91 { return this->gametypeHud_; } 76 92 77 93 protected: … … 86 102 private: 87 103 void networkcallback_changedcontrollableentityID(); 104 void updateGametypeHUD(); 88 105 89 106 bool bReadyToSpawn_; … … 91 108 ControllableEntity* controllableEntity_; 92 109 unsigned int controllableEntityID_; 110 std::string gametypeHudTemplate_; 111 OverlayGroup* gametypeHud_; 93 112 }; 94 113 }
Note: See TracChangeset
for help on using the changeset viewer.