Changeset 7090 for code/branches/presentation3/src/orxonox/controllers
- Timestamp:
- Jun 2, 2010, 9:44:22 PM (15 years ago)
- Location:
- code/branches/presentation3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3
- Property svn:mergeinfo changed
/code/branches/ppspickups4 (added) merged: 7067-7068
- Property svn:mergeinfo changed
-
code/branches/presentation3/src/orxonox/controllers/AIController.cc
r7066 r7090 33 33 #include "core/Executor.h" 34 34 #include "worldentities/ControllableEntity.h" 35 #include "worldentities/pawns/Pawn.h" 35 36 36 37 namespace orxonox … … 210 211 { 211 212 if (this->target_) 212 this->aimAtTarget(); 213 { 214 if (!this->target_->getRadarVisibility()) /* So AI won't shoot invisible Spaceships */ 215 this->forgetTarget(); 216 else this->aimAtTarget(); 217 } 213 218 214 219 if (this->bHasTargetPosition_) … … 239 244 { 240 245 if (this->target_) 241 this->aimAtTarget(); 246 { 247 if (!this->target_->getRadarVisibility()) /* So AI won't shoot invisible Spaceships */ 248 this->forgetTarget(); 249 else this->aimAtTarget(); 250 } 242 251 243 252 if (this->bHasTargetPosition_) -
code/branches/presentation3/src/orxonox/controllers/ArtificialController.cc
r7066 r7090 760 760 continue; 761 761 762 /* So AI won't choose invisible Spaceships as target */ 763 if (!it->getRadarVisibility()) 764 continue; 765 762 766 if (static_cast<ControllableEntity*>(*it) != this->getControllableEntity()) 763 767 {
Note: See TracChangeset
for help on using the changeset viewer.