Changeset 8682 for code/branches/presentation/src/orxonox/worldentities
- Timestamp:
- May 30, 2011, 10:20:27 AM (13 years ago)
- Location:
- code/branches/presentation/src/orxonox/worldentities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/orxonox/worldentities/ControllableEntity.cc
r8680 r8682 406 406 } 407 407 408 this->createHud(); 409 } 410 411 // HACK-ish 412 void ControllableEntity::createHud(void) 413 { 408 414 if (!this->hud_ && GameMode::showsGraphics()) 409 415 { … … 414 420 this->hud_->setOwner(this); 415 421 } 422 } 423 } 424 425 void ControllableEntity::destroyHud(void) 426 { 427 if (this->hud_ != NULL) 428 { 429 this->hud_->destroy(); 430 this->hud_ = NULL; 416 431 } 417 432 } -
code/branches/presentation/src/orxonox/worldentities/ControllableEntity.h
r8680 r8682 176 176 inline void setHudTemplate(const std::string& name) 177 177 { this->hudtemplate_ = name; } 178 // HACK-ish 179 void createHud(void); 180 void destroyHud(void); 178 181 179 182 Ogre::SceneNode* cameraPositionRootNode_;
Note: See TracChangeset
for help on using the changeset viewer.