Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6847


Ignore:
Timestamp:
May 3, 2010, 4:51:35 PM (15 years ago)
Author:
gasserlu
Message:

drone follows Owner

Location:
code/branches/ai/src
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ai/src/modules/pickup/items/DronePickup.cc

    r6782 r6847  
    141141                if(droneController != NULL)
    142142                {
    143                     droneController->setPawn(pawn);
     143                    droneController->setOwner(pawn);
    144144                }
    145145
  • code/branches/ai/src/orxonox/OrxonoxPrereqs.h

    r6524 r6847  
    8282    class ArtificialController;
    8383    class Controller;
     84    class DroneController;
    8485    class HumanController;
    8586    class ScriptController;
     
    161162    class CameraPosition;
    162163    class ControllableEntity;
     164    class Drone;
    163165    class EffectContainer;
    164166    class ExplosionChunk;
  • code/branches/ai/src/orxonox/worldentities/Drone.cc

    r6832 r6847  
    6464       
    6565        myController_ = new DroneController(static_cast<BaseObject*>(this)); //!< Creates a new controller and passes our this pointer to it as creator.
     66        myController_->setDrone(this);
     67
    6668        this->setController(myController_);
    6769    }
Note: See TracChangeset for help on using the changeset viewer.