Changeset 8145 in orxonox.OLD for trunk/src/util
- Timestamp:
- Jun 5, 2006, 11:49:26 AM (19 years ago)
- Location:
- trunk/src/util
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/animation/t_animation.h
r5115 r8145 242 242 break; 243 243 case ANIM_NEG_EXP: 244 {245 244 this->animFunc = &tAnimation<T>::negExp; 246 245 expFactor = - 1.0 / this->currentKeyFrame->duration * logf(DELTA_X); 247 246 break; 248 }249 247 case ANIM_QUADRATIC: 250 248 this->animFunc = &tAnimation<T>::quadratic; -
trunk/src/util/hud.cc
r7064 r8145 62 62 } 63 63 64 void Hud::setEnergyWidget( GLGuiWidget* widget)64 void Hud::setEnergyWidget(OrxGui::GLGuiWidget* widget) 65 65 { 66 66 // decopple old widget … … 83 83 } 84 84 85 void Hud::setShiledWidget( GLGuiWidget* widget)85 void Hud::setShiledWidget(OrxGui::GLGuiWidget* widget) 86 86 { 87 87 } 88 88 89 void Hud::setArmorWidget( GLGuiWidget* widget)89 void Hud::setArmorWidget(OrxGui::GLGuiWidget* widget) 90 90 { 91 91 } … … 115 115 { 116 116 // hide all the Widgets 117 std::list< GLGuiWidget*>::iterator weaponWidget;117 std::list<OrxGui::GLGuiWidget*>::iterator weaponWidget; 118 118 for (weaponWidget = this->weaponsWidgets.begin(); weaponWidget != this->weaponsWidgets.end(); weaponWidget++) 119 119 { … … 140 140 } 141 141 142 void Hud::addWeaponWidget( GLGuiWidget* widget)142 void Hud::addWeaponWidget(OrxGui::GLGuiWidget* widget) 143 143 { 144 144 } 145 145 146 void Hud::removeWeaponWidget( GLGuiWidget* widget)146 void Hud::removeWeaponWidget(OrxGui::GLGuiWidget* widget) 147 147 { 148 148 } … … 160 160 this->setSize2D(.2 * this->resX, this->resY); 161 161 162 std::list< GLGuiWidget*>::iterator weaponWidget;162 std::list<OrxGui::GLGuiWidget*>::iterator weaponWidget; 163 163 float pos = .3; 164 164 for (weaponWidget = this->weaponsWidgets.begin(); weaponWidget != this->weaponsWidgets.end(); weaponWidget++, pos+=.03) -
trunk/src/util/hud.h
r7779 r8145 15 15 16 16 //! A class that renders a HUD. 17 class Hud : public OrxGui::GLGuiWidget17 class Hud : public Element2D 18 18 { 19 19 … … 26 26 27 27 void setBackGround(); 28 void setEnergyWidget( GLGuiWidget* widget);29 void setShiledWidget( GLGuiWidget* widget);30 void setArmorWidget( GLGuiWidget* widget);28 void setEnergyWidget(OrxGui::GLGuiWidget* widget); 29 void setShiledWidget(OrxGui::GLGuiWidget* widget); 30 void setArmorWidget(OrxGui::GLGuiWidget* widget); 31 31 void setWeaponManager(WeaponManager* weaponMan); 32 32 33 void addWeaponWidget( GLGuiWidget* widget);34 void removeWeaponWidget( GLGuiWidget* widget);33 void addWeaponWidget(OrxGui::GLGuiWidget* widget); 34 void removeWeaponWidget(OrxGui::GLGuiWidget* widget); 35 35 36 36 void updateWeaponManager(); … … 46 46 unsigned int resY; 47 47 48 GLGuiWidget*energyWidget;49 GLGuiWidget*shieldWidget;50 GLGuiWidget*armorWidget;48 OrxGui::GLGuiWidget* energyWidget; 49 OrxGui::GLGuiWidget* shieldWidget; 50 OrxGui::GLGuiWidget* armorWidget; 51 51 52 52 WeaponManager* weaponManager; 53 53 54 std::list< GLGuiWidget*>weaponsWidgets; //!< WeaponWidgets will be displayed one after another54 std::list<OrxGui::GLGuiWidget*> weaponsWidgets; //!< WeaponWidgets will be displayed one after another 55 55 }; 56 56
Note: See TracChangeset
for help on using the changeset viewer.