Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 13, 2016, 10:40:06 PM (8 years ago)
Author:
landauf
Message:

made some functions non-virtual

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v3/src/orxonox/items/ShipPart.h

    r11054 r11060  
    6464            PartDestructionEvent* getDestructionEvent(unsigned int index);
    6565
    66             virtual void setDamageAbsorption(float value);
    67             inline float getDamageAbsorption()
     66            inline void setDamageAbsorption(float value)
     67                { this->damageAbsorption_ = value; }
     68            inline float getDamageAbsorption() const
    6869                { return this->damageAbsorption_; }
    6970
    7071            void setParent(ModularSpaceShip* ship);
    71             inline ModularSpaceShip* getParent()
     72            inline ModularSpaceShip* getParent() const
    7273                { return this->parent_; }
    7374
    7475            inline void setEventExecution(bool var)
    7576                { this->eventExecution_ = var; }
    76             inline bool isEventExecution()
     77            inline bool isEventExecution() const
    7778                { return this->eventExecution_; }
    7879
    79             virtual void setHealth(float health);
     80            inline void setHealth(float health)
     81                { this->health_ = health; }
    8082            inline void addHealth(float health)
    8183                { this->setHealth(this->health_ + health); }
Note: See TracChangeset for help on using the changeset viewer.