Changeset 4728 in orxonox.OLD for orxonox/trunk/src/lib/physics/fields/field.h
- Timestamp:
- Jun 28, 2005, 11:56:46 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/physics/fields/field.h
r4481 r4728 1 /* 1 /* 2 2 orxonox - the future of 3D-vertical-scrollers 3 3 … … 14 14 */ 15 15 16 /*! 16 /*! 17 17 \file field.h 18 18 \brief abstract definition of a Physical Field 19 19 20 This is a totally abstract class, that only enables different Physical Fields to 20 This is a totally abstract class, that only enables different Physical Fields to 21 21 exist on a common Level. 22 22 */ … … 28 28 29 29 // FORWARD DEFINITION 30 30 class TiXmlElement; 31 31 32 32 33 33 //! An abstract class that represents a Force. 34 class Field : public PNode 34 class Field : public PNode 35 35 { 36 36 public: 37 37 Field(); 38 Field(const TiXmlElement* root); 38 39 virtual ~Field(); 39 40 40 /** 41 void init(void); 42 void loadParams(const TiXmlElement* root); 43 44 /** 41 45 \param data This is the data given to this force, to calculate the ForceVector 42 46 \returns The Force Vector … … 44 48 virtual Vector calcForce(const Vector& data) const = 0; 45 49 46 void setMagnitude( const float&magnitude);50 void setMagnitude(float magnitude); 47 51 /** \returns The Magnitude of the Field */ 48 52 inline const float& getMagnitude(void) const {return this->magnitude;} 49 53 50 void setAttenuation( const float&attenuation);54 void setAttenuation(float attenuation); 51 55 /** \returns The Attenuation of the Fiels */ 52 56 inline const float& getAttenuation(void) const {return this->attenuation;}
Note: See TracChangeset
for help on using the changeset viewer.