- Timestamp:
- Nov 27, 2017, 3:28:41 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/SOBv2_HS17/src/modules/superorxobros/SOBFireball.cc
r11597 r11599 42 42 #include "util/Output.h" 43 43 #include <BulletCollision/NarrowPhaseCollision/btManifoldPoint.h> 44 #include "graphics/ParticleSpawner.h" 45 44 46 45 47 … … 58 60 this->enableCollisionCallback(); 59 61 gravityAcceleration_ = 350.0; 62 60 63 speed_ = 0; 61 64 hasCollided_=false; … … 68 71 collDisZ_ = 0; 69 72 hitCounter_ = 0; 70 73 particlespawner_ = NULL ; 74 75 76 77 78 71 79 } 72 80 … … 147 155 SUPER(SOBFireball, tick, dt); 148 156 157 //the particle spawner that generates the fire from the backpack when pressed 158 if (particlespawner_ == NULL) { 159 for (WorldEntity* object : this->getAttachedObjects()) 160 { 161 if (object->isA(Class(ParticleSpawner))) 162 particlespawner_ = object; 163 } 164 165 } 166 167 if(particlespawner_ != NULL) 168 particlespawner_->setVisible(true); 149 169 if (!changeAllowed_) { 150 170 changedOn_+= dt;
Note: See TracChangeset
for help on using the changeset viewer.