Changeset 10701 in orxonox.OLD for branches/presentation/src/world_entities
- Timestamp:
- Jun 14, 2007, 11:15:04 PM (18 years ago)
- Location:
- branches/presentation/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/projectiles/acid_splash.cc
r10698 r10701 22 22 #include "state.h" 23 23 24 //#include "space_ships/space_ship.h"25 26 24 #include <cassert> 27 25 #include "debug.h" 28 29 //#include "static_model.h"30 26 31 27 #include "effects/wobblegrid.h" … … 43 39 this->registerObject(this, AcidSplash::_objectList); 44 40 45 srand(time(0)); //initialize Random Nomber Generator 46 47 //this->loadModel("models/projectiles/laser.obj"); 41 // moved to baseObject 42 // srand(time(0)); //initialize Random Nomber Generator 48 43 49 44 this->setMinEnergy(1); … … 72 67 this->grid->setTexture( "textures/acid2.png"); 73 68 } 74 // if (rand()/2 == 0) //!<Randomized Textrures75 // this->grid->setTexture( "textures/acid3.png");76 // else77 // this->grid->setTexture( "textures/blub.png");78 69 79 70 this->grid->toList(OM_ENVIRON); … … 87 78 AcidSplash::~AcidSplash () 88 79 { 89 // delete this->emitter;90 //delete this->grid;91 80 this->grid->toList(OM_DEAD); 92 93 81 } 94 82 … … 121 109 } 122 110 123 /*124 void AcidSplash::collidesWith(WorldEntity* entity, const Vector& location)125 {126 111 127 if (this->hitEntity != entity)128 this->destroy( entity );129 this->hitEntity = entity;130 //dynamic_cast<SpaceShip*>(entity)->damage(this->getPhysDamage(),this->getElecDamage());131 //this->destroy(this);132 this->deactivate();133 134 // return;135 136 //dynamic_cast<SpaceShip*>(entity)->damage( this->getPhysDamage(), this->getElecDamage());137 //entity->destroy(this);138 //this->deactivate();139 }140 */141 112 /** 142 113 * signal tick, time dependent things will be handled here … … 145 116 void AcidSplash::tick (float dt) 146 117 { 147 //Vector v = *this->flightDirection * ( this->speed * time * 1000 + 0.1);148 118 Vector v = this->velocity * dt; 149 119 this->shiftCoor(v); -
branches/presentation/src/world_entities/weapons/rf_cannon.cc
r10698 r10701 69 69 void RFCannon::init() 70 70 { 71 72 71 this->setScaling(.2); 73 72 … … 92 91 this->setBarrels(4); 93 92 this->setSegs(1); 94 this->activeBarrel = 0;93 this->activeBarrel = (rand() % 4); 95 94 96 95 this->objComp = new PNode**[this->getBarrels()];
Note: See TracChangeset
for help on using the changeset viewer.