Changeset 7068 for code/branches/ppspickups4
- Timestamp:
- May 31, 2010, 7:11:25 PM (14 years ago)
- Location:
- code/branches/ppspickups4/src/orxonox/controllers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ppspickups4/src/orxonox/controllers/AIController.cc
r6998 r7068 33 33 #include "core/Executor.h" 34 34 #include "worldentities/ControllableEntity.h" 35 #include "worldentities/pawns/Pawn.h" 35 36 36 37 namespace orxonox … … 103 104 104 105 if (this->target_) 106 if (!this->target_->getRadarVisibility()) /* So AI won't shoot invisible Spaceships */ 107 this->forgetTarget(); 105 108 this->aimAtTarget(); 106 109 -
code/branches/ppspickups4/src/orxonox/controllers/ArtificialController.cc
r6502 r7068 111 111 { 112 112 if (ArtificialController::sameTeam(this->getControllableEntity(), static_cast<ControllableEntity*>(*it), this->getGametype())) 113 continue; 114 115 /* So AI won't choose invisible Spaceships as target */ 116 if (!it->getRadarVisibility()) 113 117 continue; 114 118
Note: See TracChangeset
for help on using the changeset viewer.