Changeset 10516 in orxonox.OLD for trunk/src/world_entities/weapons/light_blaster.cc
- Timestamp:
- Jan 30, 2007, 9:17:21 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/light_blaster.cc
r10471 r10516 10 10 11 11 #include "loading/fast_factory.h" 12 13 #include "elements/glgui_energywidgetvertical.h" 12 14 13 15 CREATE_FACTORY(LightBlaster); … … 43 45 delete [] this->shootAnim; 44 46 delete [] this->objComp; 45 /*46 for(int j = 0; j < this->getSegs(); j++)47 {48 delete this->shootAnim[i][j];49 delete this->objComp[i][j];50 }51 delete this->shootAnim[i];52 delete this->objComp[i];53 delete this->emissionPoint[i];54 }*/55 47 56 // this->deconstr();57 // model will be deleted from WorldEntity-destructor58 48 } 59 49 … … 79 69 80 70 this->setActionSound(WA_SHOOT, "sounds/guns/laser.wav"); 81 this->setActionSound(WA_ACTIVATE, "sounds/voices/lasers.wav");71 // this->setActionSound(WA_ACTIVATE, "sounds/voices/lasers.wav"); 82 72 this->setActionSound(WA_RELOAD, "sounds/spawn/alien_generator.wav"); 83 73 84 74 this->setCapability(WTYPE_ALLDIRS | WTYPE_DIRECTIONAL | WTYPE_LIGHT); 85 //this->setProjectileTypeC("RailProjectile"); // FIXME temp project type until the blaste class exist 86 this->setProjectileTypeC("LBolt"); // Working; FIXME: add textures 87 // this->setProjectileTypeC("Spike"); // Working; FIXME: add textures 75 this->setProjectileTypeC("LBolt"); 88 76 this->prepareProjectiles(100); 89 77 … … 137 125 } 138 126 139 140 127 void LightBlaster::fire() 141 128 { … … 187 174 static_cast<StaticModel*>(this->getModel())->draw(); 188 175 glPopMatrix(); 176 189 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.