Changeset 9869 in orxonox.OLD for trunk/src/lib/physics/fields
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (18 years ago)
- Location:
- trunk/src/lib/physics/fields
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/physics/fields/field.cc
r9406 r9869 23 23 #include "util/loading/load_param.h" 24 24 25 ObjectListDefinition(Field); 25 26 26 27 /** 27 * standard constructor28 * @brief standard constructor 28 29 */ 29 30 Field::Field () … … 33 34 34 35 /** 35 * standard deconstructor 36 37 */ 36 * @brief standard deconstructor 37 */ 38 38 Field::~Field () 39 39 { … … 42 42 43 43 /** 44 \brief initializes a Field45 */44 * @brief initializes a Field 45 */ 46 46 void Field::init() 47 47 { 48 this-> setClassID(CL_FIELD, "Field");48 this->registerObject(this, Field::_objectList); 49 49 this->setMagnitude(1); 50 50 this->setAttenuation(0); … … 54 54 55 55 /** 56 * @param root The XML-element to load settings from56 * @param root The XML-element to load settings from 57 57 */ 58 58 void Field::loadParams(const TiXmlElement* root) -
trunk/src/lib/physics/fields/field.h
r6512 r9869 16 16 /*! 17 17 * @file field.h 18 *abstract definition of a Physical Field19 20 21 22 */18 * abstract definition of a Physical Field 19 * 20 * This is a totally abstract class, that only enables different Physical Fields to 21 * exist on a common Level. 22 */ 23 23 24 24 #ifndef _FIELD_H … … 34 34 class Field : public PNode 35 35 { 36 ObjectListDeclaration(Field); 36 37 public: 37 38 Field(); -
trunk/src/lib/physics/fields/gravity.cc
r9406 r9869 21 21 #include "util/loading/factory.h" 22 22 23 #include "class_id_DEPRECATED.h" 24 ObjectListDefinitionID(Gravity, CL_FIELD_GRAVITY); 23 25 24 25 CREATE_FACTORY(Gravity, CL_FIELD_GRAVITY); 26 CREATE_FACTORY(Gravity); 26 27 27 28 Gravity::Gravity(const TiXmlElement* root) 28 29 { 29 this-> setClassID(CL_FIELD_GRAVITY, "Gravity");30 this->registerObject(this, Gravity::_objectList); 30 31 31 32 if (root != NULL) -
trunk/src/lib/physics/fields/gravity.h
r6512 r9869 16 16 //! A class for ... 17 17 class Gravity : public Field { 18 ObjectListDeclaration(Gravity); 18 19 19 20 public: -
trunk/src/lib/physics/fields/point_gravity.cc
r9406 r9869 20 20 21 21 22 #include "class_id_DEPRECATED.h" 23 ObjectListDefinitionID(PointGravity, CL_FIELD_POINT_GRAVITY); 24 22 25 23 26 /** … … 27 30 PointGravity::PointGravity () 28 31 { 29 this->setClassID(CL_FIELD_POINT_GRAVITY, "PointGravity");32 this->registerObject(this, PointGravity::_objectList); 30 33 } 31 34 -
trunk/src/lib/physics/fields/point_gravity.h
r5405 r9869 1 /*! 1 /*! 2 2 * @file point_gravity.h 3 3 * Definition of ... … … 16 16 //! A class for ... 17 17 class PointGravity : public Field { 18 ObjectListDeclaration(PointGravity); 18 19 19 20 public: -
trunk/src/lib/physics/fields/twirl.cc
r9406 r9869 20 20 21 21 22 #include "class_id_DEPRECATED.h" 23 ObjectListDefinitionID(Twirl, CL_FIELD_TWIRL); 24 22 25 23 26 /** … … 27 30 Twirl::Twirl () 28 31 { 29 this->setClassID(CL_FIELD_TWIRL, "Twirl");32 this->registerObject(this, Twirl::_objectList); 30 33 } 31 34 -
trunk/src/lib/physics/fields/twirl.h
r5405 r9869 1 /*! 1 /*! 2 2 * @file twirl.h 3 3 * Definition of ... … … 16 16 //! A class for ... 17 17 class Twirl : public Field { 18 ObjectListDeclaration(Twirl); 18 19 19 20 public:
Note: See TracChangeset
for help on using the changeset viewer.