Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 12, 2009, 11:12:01 AM (16 years ago)
Author:
landauf
Message:

small adjustments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/tutorial/src/orxonox/objects/controllers/DroneController.cc

    r2767 r2775  
    3232#include "util/Math.h"
    3333
    34 
    3534namespace orxonox
    3635{
     
    4039        // - make sure to register the object in the factory
    4140        // - do any kind of initialisation
    42        
    43        
    44        
     41
     42
     43
    4544        // this checks that our creator really is a drone
    4645        // and saves the pointer to the drone for the controlling commands
    47         assert(dynamic_cast<Drone*>(creator)!=0);
     46        assert(dynamic_cast<Drone*>(creator) != 0);
    4847        this->setControllableEntity(dynamic_cast<Drone*>(creator));
    4948    }
     
    5756        // Place your code here:
    5857        // - steering commands
    59         Drone *myDrone = static_cast<Drone*>(this->getControllableEntity());
     58        Drone* myDrone = static_cast<Drone*>(this->getControllableEntity());
    6059        // you can use the following commands for steering
    6160        // - moveFrontBack, moveRightLeft, moveUpDown
    6261        // - rotatePitch, rotateYaw, rotateRoll
    6362        // - apply the to myDrone (e.g. myDrone->rotateYaw(..) )
    64        
     63
    6564    }
    6665}
Note: See TracChangeset for help on using the changeset viewer.