Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 2, 2010, 9:44:22 PM (14 years ago)
Author:
dafrick
Message:

Merged ppspickups4 branch.

Location:
code/branches/presentation3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3

  • code/branches/presentation3/src/orxonox/controllers/AIController.cc

    r7066 r7090  
    3333#include "core/Executor.h"
    3434#include "worldentities/ControllableEntity.h"
     35#include "worldentities/pawns/Pawn.h"
    3536
    3637namespace orxonox
     
    210211            {
    211212                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            }
    213218
    214219                if (this->bHasTargetPosition_)
     
    239244        {
    240245            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            }
    242251
    243252            if (this->bHasTargetPosition_)
  • code/branches/presentation3/src/orxonox/controllers/ArtificialController.cc

    r7066 r7090  
    760760                continue;
    761761
     762            /* So AI won't choose invisible Spaceships as target */
     763            if (!it->getRadarVisibility())
     764                continue;
     765
    762766            if (static_cast<ControllableEntity*>(*it) != this->getControllableEntity())
    763767            {
Note: See TracChangeset for help on using the changeset viewer.