Changeset 697 for code/branches/FICN/src/orxonox/objects/Projectile.cc
- Timestamp:
- Dec 27, 2007, 5:06:55 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/objects/Projectile.cc
r670 r697 39 39 RegisterObject(Projectile); 40 40 41 this->setConfigValues(); 42 41 43 this->owner_ = owner; 42 43 SetConfigValue(lifetime_, 10.0);44 SetConfigValue(speed_, 2000.0);45 44 46 45 this->billboard_.setBillboardSet("Examples/Flare", ColourValue(1.0, 1.0, 0.5), 1); … … 64 63 } 65 64 65 void Projectile::setConfigValues() 66 { 67 SetConfigValue(lifetime_, 10.0); 68 SetConfigValue(speed_, 2000.0); 69 } 70 66 71 void Projectile::tick(float dt) 67 72 { … … 77 82 if (this->getPosition().squaredDistance(it->getPosition()) <= (radius*radius)) 78 83 { 79 Explosion* explosion =new Explosion(this);84 new Explosion(this); 80 85 delete this; 81 86 return;
Note: See TracChangeset
for help on using the changeset viewer.