- Timestamp:
- Nov 27, 2005, 4:07:22 PM (19 years ago)
- Location:
- branches
- Files:
-
- 4 edited
- 25 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/collision_detection/Makefile.in
r5674 r5796 41 41 $(srcdir)/doc/documentation.am $(top_srcdir)/configure AUTHORS \ 42 42 COPYING ChangeLog INSTALL NEWS config.guess config.sub depcomp \ 43 install-sh ltmain.shmissing mkinstalldirs43 install-sh missing mkinstalldirs 44 44 subdir = . 45 45 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -
branches/guidedmissile/aclocal.m4
r5764 r5796 1 # generated automatically by aclocal 1.9. 5-*- Autoconf -*-1 # generated automatically by aclocal 1.9.6 -*- Autoconf -*- 2 2 3 3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, … … 29 29 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. 30 30 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 31 [AM_AUTOMAKE_VERSION([1.9. 5])])31 [AM_AUTOMAKE_VERSION([1.9.6])]) 32 32 33 33 # AM_AUX_DIR_EXPAND -*- Autoconf -*- -
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.