- Timestamp:
- May 25, 2009, 5:54:42 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/worldentities/ForceField.h
r3033 r3064 36 36 namespace orxonox 37 37 { 38 class _OrxonoxExport ForceField : public StaticEntity, public Tickable39 {38 class _OrxonoxExport ForceField : public StaticEntity, public Tickable 39 { 40 40 public: 41 ForceField(BaseObject* creator);42 virtual ~ForceField();43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a CheckPoint object through XML.44 virtual void tick(float dt);41 ForceField(BaseObject* creator); 42 virtual ~ForceField(); 43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a CheckPoint object through XML. 44 virtual void tick(float dt); 45 45 46 inline void setVelocity(float vel)47 { this->velocity_ = vel; }46 inline void setVelocity(float vel) 47 { this->velocity_ = vel; } 48 48 49 inline float getVelocity()50 { return velocity_; }49 inline float getVelocity() 50 { return velocity_; } 51 51 52 inline void setDiameter(float diam)53 { this->diameter_ = diam; }52 inline void setDiameter(float diam) 53 { this->diameter_ = diam; } 54 54 55 inline float getDiameter()56 { return diameter_; }55 inline float getDiameter() 56 { return diameter_; } 57 57 58 inline void setLength(float l)59 { this->length_ = l; }58 inline void setLength(float l) 59 { this->length_ = l; } 60 60 61 inline float getLength()62 { return length_; }61 inline float getLength() 62 { return length_; } 63 63 64 64 private: 65 float velocity_;66 float diameter_;67 float length_;65 float velocity_; 66 float diameter_; 67 float length_; 68 68 }; 69 69 }
Note: See TracChangeset
for help on using the changeset viewer.