Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 7, 2010, 11:27:20 PM (14 years ago)
Author:
rgrieder
Message:

Merged r5841 that removes the student's code from the tutorial.

Location:
code/branches/tutorial
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/tutorial

  • code/branches/tutorial/src/orxonox/worldentities/Drone.cc

    r6483 r6487  
    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
  • code/branches/tutorial/src/orxonox/worldentities/Drone.h

    r6483 r6487  
    105105            */
    106106            inline void setPrimaryThrust( float thrust )
    107                 { this->primaryThrust_=thrust; }           
    108             inline void setAuxilaryThrust( float thrust )
    109                 { this->auxilaryThrust_=thrust; }
    110             inline void setRotationThrust( float thrust )
    111                 { this->rotationThrust_=thrust; }
     107                { this->primaryThrust_=thrust; }     
     108            // place your set-functions here.
     109            // - hint: auxiliary thrust, rotation thrust.
    112110           
    113111            /**
     
    117115            inline float getPrimaryThrust()
    118116                { return this->primaryThrust_; }
    119             inline float getAuxilaryThrust()
    120                 { return this->auxilaryThrust_; }
    121             inline float getRotationThrust()
    122                 { return this->rotationThrust_; }
     117            // place your get-functions here.
    123118           
    124119        private:
Note: See TracChangeset for help on using the changeset viewer.