Changeset 11782 for code/branches/Presentation_HS17_merge/src/orxonox
- Timestamp:
- Feb 20, 2018, 12:09:09 AM (7 years ago)
- Location:
- code/branches/Presentation_HS17_merge/src/orxonox/worldentities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Presentation_HS17_merge/src/orxonox/worldentities/NameableStaticEntity.cc
r11781 r11782 26 26 * 27 27 * 28 * 29 * 30 * 31 * This subclass of planet has the addition, that they can be labeled ingame, just like bots are in a level gameplay (As it would be nice to see which level you can play)32 * 28 * Authors' Note: 29 * The following class inherits of its superclass planet 30 * It is meant only for the Campaign Map 31 * This subclass of planet has the addition, that they can be labeled ingame, just like bots are in a level gameplay (As it would be nice to see which level you can play) 32 * 33 33 */ 34 34 -
code/branches/Presentation_HS17_merge/src/orxonox/worldentities/NameableStaticEntity.h
r11781 r11782 41 41 class _OrxonoxExport NameableStaticEntity : public StaticEntity 42 42 { 43 44 45 43 public: 44 NameableStaticEntity(Context* context); 45 virtual ~NameableStaticEntity(); 46 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 47 47 -
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.