Changeset 10685 in orxonox.OLD for branches/hud/src/world_entities/world_entity.cc
- Timestamp:
- Jun 11, 2007, 4:40:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/hud/src/world_entities/world_entity.cc
r10618 r10685 813 813 } 814 814 815 /** 816 * @brief creates the ImplantWidget 817 * 818 * since not all entities need an ImpantWidget, it is only created on request. 819 */ 820 void WorldEntity::createImplantWidget() 821 { 822 if (this->implantWidget == NULL) 823 { 824 this->implantWidget = new OrxGui::GLGuiEnergyWidgetVertical(); 825 //this->impantWidget->setDisplayedName("Implant"); 826 //this->impantWidget->setSize2D(100,20); 827 //this->impantWidget->setAbsCoor2D(100,200); 828 829 //this->updateImplantWidget(); 830 } 831 else 832 PRINTF(3)("Allready created the ImlpantWidget for %s::%s\n", this->getClassCName(), this->getCName()); 833 } 834 815 835 void WorldEntity::increaseHealthMax(float increaseHealth) 816 836 { … … 824 844 this->createHealthWidget(); 825 845 return this->healthWidget; 846 } 847 848 849 OrxGui::GLGuiWidget* WorldEntity::getImplantWidget() 850 { 851 this->createImplantWidget(); 852 return this->implantWidget; 826 853 } 827 854
Note: See TracChangeset
for help on using the changeset viewer.