Changeset 1502 for code/trunk/src/orxonox/objects/Projectile.cc
- Timestamp:
- Jun 1, 2008, 3:54:20 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/Projectile.cc
r1360 r1502 30 30 #include "Projectile.h" 31 31 32 #include <OgreBillboard.h> 33 32 34 #include "core/CoreIncludes.h" 33 35 #include "core/Executor.h" … … 41 43 { 42 44 CreateFactory(Projectile); 45 46 float Projectile::speed_ = 0; 43 47 44 48 Projectile::Projectile(SpaceShip* owner) : … … 63 67 64 68 this->destroyTimer_.setTimer(this->lifetime_, false, this, createExecutor(createFunctor(&Projectile::destroyObject))); 65 this->classID = this->getIdentifier()->getNetworkID(); // TODO: remove this hack66 69 // COUT(3) << this->classID << std::endl; 67 70 } … … 92 95 if (this->getPosition().squaredDistance(it->getPosition()) <= (radius*radius)) 93 96 { 94 new Explosion(this); 97 Explosion *exp = new Explosion(this); 98 exp->create(); 95 99 delete this; 96 100 return; … … 104 108 delete this; 105 109 } 110 111 void Projectile::setColour(const ColourValue& colour) 112 { 113 this->billboard_.getBillboardSet()->getBillboard(0)->setColour(colour); 114 } 106 115 }
Note: See TracChangeset
for help on using the changeset viewer.