Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 18, 2018, 5:23:29 PM (7 years ago)
Author:
landauf
Message:

[SOBv2_HS17] removed unused variables, added some initializations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Presentation_HS17_merge/src/modules/superorxobros/SOBGumba.cc

    r11766 r11769  
    4848        RegisterObject(SOBGumba);
    4949
    50         attachedToFigure_ = false;
    5150        setAngularFactor(0.0);
    52         figure_ = nullptr;
    5351        this->enableCollisionCallback();
    5452        gravityAcceleration_ = 350.0;
     
    5654        hasCollided_=false;
    5755        goesRight_ = true;
    58         lastPos_ = getPosition();
    59         lastPos_.x -= 20;
    6056        changeAllowed_ = true;
    6157        changedOn_ = 0.0;
     
    8884    }
    8985
    90 
    91     void SOBGumba::setFigure(SOBFigure* newFigure)
    92     {
    93         figure_ = newFigure;
    94     }
    9586
    9687    void SOBGumba::setDirection(const bool direction)
     
    140131        setVelocity(velocity);
    141132
    142         lastPos_ = getPosition();
    143 
    144133        if (creator_ != nullptr)
    145134        {
Note: See TracChangeset for help on using the changeset viewer.