- Timestamp:
- Feb 20, 2018, 12:09:09 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Presentation_HS17_merge/src/orxonox/worldentities/pawns/ShootableObstacle.h
r11781 r11782 38 38 : public Pawn 39 39 { 40 41 42 43 40 public: 41 ShootableObstacle(Context* context); 42 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 43 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint) override; 44 44 45 46 45 inline void setCollisionDamage(float c) 46 { this->collisionDamage_ = c; } 47 47 48 49 48 inline float getCollisionDamage() 49 { return this->collisionDamage_; } 50 50 51 52 53 54 55 51 inline void setEnableCollisionDamage(bool c) 52 { 53 this->enableCollisionDamage_ = c; 54 this->enableCollisionCallback(); 55 } 56 56 57 58 57 inline bool getEnableCollisionDamage() 58 { return this->enableCollisionDamage_; } 59 59 60 61 62 60 private: 61 float collisionDamage_; 62 bool enableCollisionDamage_; 63 63 }; 64 64 }
Note: See TracChangeset
for help on using the changeset viewer.