- Timestamp:
- Nov 3, 2015, 5:06:05 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/AI_HS15/src/orxonox/controllers/FleetController.cc
r10759 r10763 58 58 this->divisions_.clear(); 59 59 60 /*for (ObjectList<DivisionController>::iterator it = ObjectList<DivisionController>::begin(); it; ++it)60 for (ObjectList<DivisionController>::iterator it = ObjectList<DivisionController>::begin(); it; ++it) 61 61 { 62 62 if ((this->getControllableEntity()->getTeam() == (it)->getControllableEntity()->getTeam())) … … 65 65 } 66 66 } 67 /*for(std::vector<WeakPtr<DivisionController> >::iterator it2 = divisions_.begin(); it2 != divisions_.end(); ++it2) 68 { 69 (*it2)->setTargetPosition(this->getControllableEntity()->getWorldPosition()); 70 }*/ 67 71 for (ObjectList<Controller>::iterator it = ObjectList<Controller>::begin(); it; ++it) 68 72 { 69 if ((this->getControllableEntity()->getTeam() != (it)->getControllableEntity()->getTeam()) && (it)->getControllableEntity()->getTeam() != 0)73 if ((this->getControllableEntity()->getTeam() != (it)->getControllableEntity()->getTeam()) && (it)->getControllableEntity()->getTeam() == 0) 70 74 { 71 75 for(std::vector<WeakPtr<DivisionController> >::iterator it2 = divisions_.begin(); it2 != divisions_.end(); ++it2) { 72 76 (*it2)->setTarget(it->getControllableEntity()); 77 (*it2)->setTargetPosition(it->getControllableEntity()->getWorldPosition()); 73 78 } 74 79 break; 75 80 } 76 } */81 } 77 82 78 83 }
Note: See TracChangeset
for help on using the changeset viewer.