Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 30, 2009, 1:21:07 PM (15 years ago)
Author:
dafrick
Message:

Removed the code, the PPS students have to insert.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/tutorial/src/orxonox/worldentities/Drone.cc

    r5835 r5841  
    3636    // put your code in here:
    3737    // create the factory for the drone
    38     CreateFactory(Drone);
    3938
    4039    /**
     
    4645        // put your code in here:
    4746        // - register the drone class to the core
    48         // - create a new controller and pass our this pointer to it as creator
    4947        this->myController_ = 0;
    50         RegisterObject(Drone);
    5148       
    5249        this->localLinearAcceleration_.setValue(0, 0, 0);
     
    5855        this->setCollisionType(WorldEntity::Dynamic);
    5956       
    60         myController_ = new DroneController(static_cast<BaseObject*>(this));
     57        myController_ = new DroneController(static_cast<BaseObject*>(this)); //!< Creates a new controller and passes our this pointer to it as creator.
    6158    }
    6259
     
    8077        SUPER(Drone, XMLPort, xmlelement, mode);
    8178
    82         XMLPortParam(Drone, "primaryThrust",  setPrimaryThrust, getPrimaryThrust,  xmlelement, mode);
    83         XMLPortParam(Drone, "auxilaryThrust", setAuxilaryThrust, getAuxilaryThrust, xmlelement, mode);
    84         XMLPortParam(Drone, "rotationThrust", setRotationThrust, getRotationThrust, xmlelement, mode);
     79        // put your code in here:
     80        // make sure you add the variables primaryThrust_, auxilaryThrust_ and rotationThrust_ to xmlport
     81        // make sure that the set- and get-functions exist.
     82        // variables can be added by the following command
     83        // XMLPortParam(Classname, "xml-attribute-name (i.e. variablename)", setFunction, getFunction, xmlelement, mode)
     84 
    8585    }
    8686
Note: See TracChangeset for help on using the changeset viewer.