Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11661


Ignore:
Timestamp:
Dec 11, 2017, 4:06:56 PM (7 years ago)
Author:
jostoffe
Message:

Der Pfeil zeigt nun in die richtige Richtung. Es ist jeweils nur derjenige Waypoint sichtbar, welcher als naechstes erreicht werden muss. Sobald alle erreicht wurden, wird der Pfeil unsichtbar. Falls man spaeter neue einfuegen will, kann man einfach einen neuen ArrayController erstellen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Waypoints_HS17/src/orxonox/worldentities/Arrow.cc

    r11559 r11661  
    3434namespace orxonox
    3535{
    36     //TODO: Put your code in here:
    37     // Create the factory for the drone.
     36
    3837    RegisterClass(Arrow);
    3938    /**
     
    4544    Arrow::Arrow(Context* context) : ControllableEntity(context)
    4645    {
    47         //TODO: Put your code in here:
    48         // Register the drone class to the core.
    4946        RegisterObject(Arrow);
    50 
    51         //this->myController_ = NULL;
    5247
    5348        this->localLinearAcceleration_.setValue(0, 0, 0);
     
    5954        this->setCollisionType(CollisionType::Dynamic);
    6055
    61         //this->myController_ = new ArrowController(this); // Creates a new controller and passes our this pointer to it as creator.
     56       
    6257    }
    6358
     
    6863    Arrow::~Arrow()
    6964    {
    70         // Deletes the controller if the object was initialized and the pointer to the controller is not NULL.
    71        // if( this->isInitialized() && this->myController_ != NULL )
    72             //delete this->myController_;
     65
    7366    }
    7467
     
    8376
    8477        XMLPortParam(Arrow, "primaryThrust", setPrimaryThrust, getPrimaryThrust, xmlelement, mode);
    85         //TODO: Put your code in here:
    8678        XMLPortParam(Arrow, "auxiliaryThrust", setAuxiliaryThrust, getAuxiliaryThrust, xmlelement, mode);
    8779        XMLPortParam(Arrow, "rotationThrust", setRotationThrust, getRotationThrust, xmlelement, mode);
    88         // Make sure you add the variables auxiliaryThrust_ and rotationThrust_ to XMLPort.
    89         // Variables can be added by the following command
    90         // XMLPortParam(Classname, "xml-attribute-name (i.e. variablename)", setFunctionName, getFunctionName, xmlelement, mode);
    91         // Also make sure that you also create the get- and set-functions in Arrow.h. As you can see, the get- and set-functions for the variable primaryThrust_ has already been specified there, so you can get your inspiration from there.
    92        
    93 
     80     
    9481    }
    9582
Note: See TracChangeset for help on using the changeset viewer.