Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11742


Ignore:
Timestamp:
Feb 12, 2018, 12:24:38 AM (6 years ago)
Author:
landauf
Message:

[Asteroid_HS17] use enum instead of string

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Presentation_HS17_merge/src/modules/asteroids2D/Asteroids2DStone.cc

    r11728 r11742  
    5454        this->height = 646;
    5555        this->setPosition(randomPosition(this->width, this->height));
    56         this->setCollisionTypeStr("dynamic");
     56        this->setCollisionType(WorldEntity::CollisionType::Dynamic);
    5757        this->setVelocity(randomVelocity(MAX_SPEED));
    5858    }
     
    6565        this->height = 646;
    6666        this->setPosition(pos);
    67         this->setCollisionTypeStr("dynamic");
     67        this->setCollisionType(WorldEntity::CollisionType::Dynamic);
    6868        this->setVelocity(randomVelocity(MAX_SPEED));
    6969    }
Note: See TracChangeset for help on using the changeset viewer.