Changeset 9679 for code/branches/tutorial4
- Timestamp:
- Sep 30, 2013, 9:54:58 AM (11 years ago)
- Location:
- code/branches/tutorial4/src/orxonox
- Files:
-
- 4 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 -
code/branches/tutorial4/src/orxonox/worldentities/AutonomousDrone.cc
r9678 r9679 43 43 The creator of this object. 44 44 */ 45 AutonomousDrone::AutonomousDrone( BaseObject* creator) : ControllableEntity(creator)45 AutonomousDrone::AutonomousDrone(Context* context) : ControllableEntity(context) 46 46 { 47 47 //TODO: Put your code in here: -
code/branches/tutorial4/src/orxonox/worldentities/AutonomousDrone.h
r9678 r9679 49 49 { 50 50 public: 51 AutonomousDrone( BaseObject* creator);51 AutonomousDrone(Context* context); 52 52 virtual ~AutonomousDrone(); 53 53
Note: See TracChangeset
for help on using the changeset viewer.