Changeset 5796 in orxonox.OLD for branches/old.we/src/world_entities
- Timestamp:
- Nov 27, 2005, 4:07:22 PM (20 years ago)
- Location:
- branches/old.we
- Files:
-
- 2 edited
- 1 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/old.we/src/world_entities/weapons/bomb.cc
r5744 r5796 21 21 #include "vector.h" 22 22 #include "fast_factory.h" 23 24 #include "object_manager.h" 23 25 24 26 … … 105 107 Vector v = this->velocity * (time); 106 108 this->shiftCoor(v); 109 ///////////////////////////////////////////////////////////////////////////////////////// 110 // TESTING THE OBJECT MANAGER ////////////////////////////////////////////////////////// 111 ///////////////////////////////////////////////////////////////////////////////////////// 112 113 std::list<WorldEntity*>* objList = ObjectManager::distanceFromObject(*this, 100, CL_NPC); 114 std::list<WorldEntity*>::const_iterator detonator; 115 for (detonator = objList->begin(); detonator != objList->end(); ++detonator) 116 { 117 // printf("%d\n", strlen((*detonator)->getName())); 118 (*detonator)->collidesWith(this, Vector(0,0,0)); 119 120 } 121 ///////////////////////////////////////////////////////////////////////////////////////// 107 122 108 123 this->lifeCycle += time/this->lifeSpan; … … 146 161 void Bomb::collidesWith (WorldEntity* entity, const Vector& location) 147 162 { 148 163 this->detonate(); 149 164 } 150 165 … … 168 183 while(lm != NULL) 169 184 { 170 185 171 186 lm = it->nextElement(); 172 187 } -
branches/old.we/src/world_entities/weapons/bomb.h
r5744 r5796 35 35 36 36 private: 37 static FastFactory* fastFactory;38 static ParticleSystem* trailParticles;39 static ParticleSystem* explosionParticles;37 static FastFactory* fastFactory; 38 static ParticleSystem* trailParticles; 39 static ParticleSystem* explosionParticles; 40 40 41 ParticleEmitter* emitter;41 ParticleEmitter* emitter; 42 42 43 43 };
Note: See TracChangeset
for help on using the changeset viewer.