Changeset 10486 in orxonox.OLD for branches/playability/src/world_entities/weapons/light_blaster.cc
- Timestamp:
- Jan 29, 2007, 6:51:25 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/weapons/light_blaster.cc
r10484 r10486 10 10 11 11 #include "loading/fast_factory.h" 12 13 #include "elements/glgui_energywidgetvertical.h" 12 14 13 15 CREATE_FACTORY(LightBlaster); … … 123 125 } 124 126 125 126 127 void LightBlaster::fire() 127 128 { … … 173 174 static_cast<StaticModel*>(this->getModel())->draw(); 174 175 glPopMatrix(); 176 175 177 } 178 179 void LightBlaster::tick(float dt) 180 { 181 if (this->energyWidget != NULL && !this->isEnergyWidgetInitialized) 182 { 183 this->energyWidget->setDisplayedImage("textures/gui/gui_light_bolt.png"); 184 this->setEnergyWidgetInitialized(true); 185 } 186 }
Note: See TracChangeset
for help on using the changeset viewer.