Changeset 6222 in orxonox.OLD for trunk/src/world_entities/weapons
- Timestamp:
- Dec 21, 2005, 1:49:06 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property
svn:ignore
set to
Makefile.in
Makefile
configure
*.kdevelop
Doxyfile
config.log
config.h
config.status
stamp-h1
autom4te.cache
aclocal.m4
-
Property
svn:ignore
set to
-
trunk/src
-
Property
svn:ignore
set to
.deps
orxonox
Makefile
Makefile.in
-
Property
svn:ignore
set to
-
trunk/src/world_entities/weapons/aim.cc
r6142 r6222 21 21 #include "graphics_engine.h" 22 22 #include "state.h" 23 #include "list.h"24 23 #include "material.h" 25 24 #include "t_animation.h" … … 104 103 void Aim::searchTarget(float range) 105 104 { 106 //FIXME// 107 /* tIterator<WorldEntity>* iterator = State::getWorldEntityList()->getIterator(); 108 WorldEntity* entity = iterator->firstElement(); 109 while (likely(entity != NULL)) 105 std::list<WorldEntity*>::iterator entity; 106 107 for (entity = State::getObjectManager()->getObjectList(OM_GROUP_00).begin(); 108 entity != State::getObjectManager()->getObjectList(OM_GROUP_00).end(); 109 entity ++) 110 110 { 111 if ( entity->isA(CL_NPC) && this->source->getAbsCoor().x < entity->getAbsCoor().x && (this->source->getAbsCoor() - entity->getAbsCoor()).len() < range)111 if (this->source->getAbsCoor().x < (*entity)->getAbsCoor().x && (this->source->getAbsCoor() - (*entity)->getAbsCoor()).len() < range) 112 112 { 113 if (this->getParent() != entity)113 if (this->getParent() != (*entity)) 114 114 { 115 115 this->anim->replay(); 116 this->setParentSoft(entity, 5); 116 this->setParentSoft(*entity, 5); 117 return; 117 118 } 118 delete iterator;119 return;120 119 } 121 entity = iterator->nextElement();122 120 } 123 124 delete iterator;*/125 121 } 126 122 -
trunk/src/world_entities/weapons/bomb.cc
r6142 r6222 21 21 22 22 #include "fast_factory.h" 23 #include "list.h" 23 24 24 25 25 #include "object_manager.h" -
trunk/src/world_entities/weapons/guided_missile.cc
r6162 r6222 20 20 #include "fast_factory.h" 21 21 22 #include "model.h"23 22 #include "state.h" 24 #include "list.h"25 23 #include "class_list.h" 26 24 -
trunk/src/world_entities/weapons/laser.cc
r6162 r6222 21 21 22 22 #include "state.h" 23 #include "list.h"24 23 #include "class_list.h" 25 24 #include "model.h" -
trunk/src/world_entities/weapons/rocket.cc
r6142 r6222 20 20 #include "fast_factory.h" 21 21 22 #include "model.h"23 22 #include "state.h" 24 #include "list.h"25 23 #include "class_list.h" 26 24 -
trunk/src/world_entities/weapons/test_bullet.cc
r6142 r6222 20 20 #include "fast_factory.h" 21 21 22 #include "model.h"23 22 #include "state.h" 24 #include "list.h"25 23 #include "class_list.h" 26 24 -
trunk/src/world_entities/weapons/test_gun.cc
r6162 r6222 29 29 #include "factory.h" 30 30 31 #include "vector.h"32 #include "list.h"33 31 #include "animation3d.h" 34 32 -
trunk/src/world_entities/weapons/turret.cc
r6074 r6222 23 23 24 24 #include "state.h" 25 #include "list.h"26 25 #include "animation3d.h" 27 26
Note: See TracChangeset
for help on using the changeset viewer.