Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 30, 2015, 10:07:09 PM (8 years ago)
Author:
landauf
Message:

using strongly typed enum class in WorldEntity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/orxonox/worldentities/pawns/SpaceShip.cc

    r10916 r11004  
    8080        // SpaceShip is always a physical object per default
    8181        // Be aware of this call: The collision type legality check will not reach derived classes!
    82         this->setCollisionType(WorldEntity::Dynamic);
     82        this->setCollisionType(WorldEntity::CollisionType::Dynamic);
    8383        // Get notification about collisions
    8484        this->enableCollisionCallback();
     
    143143    bool SpaceShip::isCollisionTypeLegal(WorldEntity::CollisionType type) const
    144144    {
    145         if (type != WorldEntity::Dynamic)
     145        if (type != WorldEntity::CollisionType::Dynamic)
    146146        {
    147147            orxout(internal_warning) << "Cannot tell a SpaceShip not to be dynamic! Ignoring." << endl;
Note: See TracChangeset for help on using the changeset viewer.