Changeset 7779 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- May 23, 2006, 10:04:17 PM (19 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/weapon.cc
r7729 r7779 307 307 } 308 308 309 GLGuiWidget* Weapon::getEnergyWidget()309 OrxGui::GLGuiWidget* Weapon::getEnergyWidget() 310 310 { 311 311 if (this->energyWidget == NULL) 312 312 { 313 this->energyWidget = new GLGuiBar;313 this->energyWidget = new OrxGui::GLGuiBar; 314 314 this->energyWidget->setSize2D( 20, 100); 315 315 this->energyWidget->setMaximum(this->getEnergyMax()); -
trunk/src/world_entities/weapons/weapon.h
r7460 r7779 25 25 class TiXmlElement; 26 26 class FastFactory; 27 namespace OrxGui{ class GLGuiWidget; } 27 28 template<class T> class tFastFactory; 28 class GLGuiWidget;29 29 30 30 //! An enumerator defining Actions a Weapon can take … … 156 156 Animation3D* copyAnimation(WeaponState from, WeaponState to); 157 157 158 GLGuiWidget* getEnergyWidget();158 OrxGui::GLGuiWidget* getEnergyWidget(); 159 159 160 160 // FLOW … … 211 211 float maxCharge; //!< The maximal energy to be loaded onto one projectile (this is only availible if chargeable is enabled) 212 212 213 GLGuiBar*energyWidget;213 OrxGui::GLGuiBar* energyWidget; 214 214 215 215 PNode* defaultTarget; //!< A target for targeting Weapons. -
trunk/src/world_entities/world_entity.cc
r7711 r7779 406 406 if (this->healthWidget == NULL) 407 407 { 408 this->healthWidget = new GLGuiBar();408 this->healthWidget = new OrxGui::GLGuiBar(); 409 409 this->healthWidget->setSize2D(30,400); 410 410 this->healthWidget->setAbsCoor2D(10,100); … … 423 423 424 424 425 GLGuiWidget* WorldEntity::getHealthWidget()425 OrxGui::GLGuiWidget* WorldEntity::getHealthWidget() 426 426 { 427 427 this->createHealthWidget(); -
trunk/src/world_entities/world_entity.h
r7711 r7779 17 17 // FORWARD DECLARATION 18 18 namespace OrxSound { class SoundBuffer; class SoundSource; } 19 namespace OrxGui { class GLGuiWidget; class GLGuiBar; }; 20 19 21 class BVTree; 20 22 class Model; 21 22 class GLGuiWidget;23 class GLGuiBar;24 23 25 24 //class CharacterAttributes; … … 91 90 float decreaseHealth(float health); 92 91 void increaseHealthMax(float increaseHealth); 93 GLGuiWidget* getHealthWidget();92 OrxGui::GLGuiWidget* getHealthWidget(); 94 93 bool hasHealthWidget() const { return this->healthWidget; }; 95 94 … … 108 107 float health; //!< The Energy of this Entity, if the Entity has any energy at all. 109 108 float healthMax; //!< The Maximal energy this entity can take. 110 GLGuiBar*healthWidget; //!< The Slider (if wanted).109 OrxGui::GLGuiBar* healthWidget; //!< The Slider (if wanted). 111 110 112 111 std::vector<Model*> models; //!< The model that should be loaded for this entity.
Note: See TracChangeset
for help on using the changeset viewer.