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/SOBMushroom.cc

    r11416 r11769  
    4848        RegisterObject(SOBMushroom);
    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;
     
    8682
    8783
    88     void SOBMushroom::setFigure(SOBFigure* newFigure)
    89     {
    90         figure_ = newFigure;
    91     }
    92 
    93 
    94 
    9584    void SOBMushroom::tick(float dt)
    9685    {
     
    10493                changedOn_ = 0.0;
    10594
     95            }
    10696        }
    107     }
    10897       
    10998
     
    116105        velocity.x = dir*speed_;
    117106        setVelocity(velocity);
    118 
    119 
    120    
    121         lastPos_ = getPosition();
    122             }
     107    }
    123108
    124109
Note: See TracChangeset for help on using the changeset viewer.