Changeset 9679 for code/branches/tutorial4/src/orxonox/controllers
- Timestamp:
- Sep 30, 2013, 9:54:58 AM (11 years ago)
- Location:
- code/branches/tutorial4/src/orxonox/controllers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/tutorial4/src/orxonox/controllers/AutonomousDroneController.cc
r9678 r9679 38 38 @brief 39 39 Constructor. 40 @param c reator41 The c reatorof this object.40 @param context 41 The context of this object. 42 42 */ 43 AutonomousDroneController::AutonomousDroneController( BaseObject* creator) : Controller(creator)43 AutonomousDroneController::AutonomousDroneController(Context* context) : Controller(context) 44 44 { 45 45 //TODO: Place your code here: 46 46 // Make sure to register the object and create the factory. 47 47 48 // This checks that our c reatorreally is a drone48 // This checks that our context really is a drone 49 49 // and saves the pointer to the drone for the controlling commands 50 AutonomousDrone* drone = dynamic_cast<AutonomousDrone*>(c reator);50 AutonomousDrone* drone = dynamic_cast<AutonomousDrone*>(context); 51 51 assert(drone != NULL); 52 52 this->setControllableEntity(drone); -
code/branches/tutorial4/src/orxonox/controllers/AutonomousDroneController.h
r9678 r9679 46 46 { 47 47 public: 48 AutonomousDroneController( BaseObject* creator);48 AutonomousDroneController(Context* context); 49 49 virtual ~AutonomousDroneController(); 50 50
Note: See TracChangeset
for help on using the changeset viewer.