Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 30, 2013, 9:54:58 AM (11 years ago)
Author:
jo
Message:

Updates due to core6 changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/tutorial4/src/orxonox/controllers/AutonomousDroneController.cc

    r9678 r9679  
    3838    @brief
    3939        Constructor.
    40     @param creator
    41         The creator of this object.
     40    @param context
     41        The context of this object.
    4242    */
    43     AutonomousDroneController::AutonomousDroneController(BaseObject* creator) : Controller(creator)
     43    AutonomousDroneController::AutonomousDroneController(Context* context) : Controller(context)
    4444    {
    4545        //TODO: Place your code here:
    4646        // Make sure to register the object and create the factory.
    4747
    48         // This checks that our creator really is a drone
     48        // This checks that our context really is a drone
    4949        // and saves the pointer to the drone for the controlling commands
    50         AutonomousDrone* drone = dynamic_cast<AutonomousDrone*>(creator);
     50        AutonomousDrone* drone = dynamic_cast<AutonomousDrone*>(context);
    5151        assert(drone != NULL);
    5252        this->setControllableEntity(drone);
Note: See TracChangeset for help on using the changeset viewer.