Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 39 and Version 40 of pps/tutorial


Ignore:
Timestamp:
Apr 9, 2013, 2:07:15 PM (11 years ago)
Author:
smerkli
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • pps/tutorial

    v39 v40  
    6969In Orxonox we try our best to separate different kinds of functionality. You will see that this is also the case here.
    7070In the case of the drone we want to create, we separate the drone itself (called AutonomousDrone) from the entity that controls  the drone (called the AutonomousDroneController) and the thing that gives shape and texture to our drone (basically that is the model). Or put more crudely, the AutonomousDrone is the physical entity, the AutonomousDroneController is its intelligence and the model is its visual representation. This is done for several reasons, the most important being, that with this kind of separation we can have multiple  controllers for just one drone, we could also have one controller for multiple types of flying objects. And the behavior of our drone is independent of how it looks like. That makes your code more generic and leads to cleaner code, less dependencies and also less code in general.
     71
     72The implementation of our drone will happen in three steps:
     73 * Core C++ code for the AutonomousDrone class
     74 * Controller C++ code to steer the drone
     75 * An instantiation in the level file
    7176
    7277== The AutonomousDrone ==