Changeset 4728 in orxonox.OLD for orxonox/trunk/src/lib/physics/fields/gravity.cc
- Timestamp:
- Jun 28, 2005, 11:56:46 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/physics/fields/gravity.cc
r4396 r4728 1 /* 1 /* 2 2 orxonox - the future of 3D-vertical-scrollers 3 3 … … 18 18 #include "gravity.h" 19 19 20 #include "load_param.h" 21 #include "factory.h" 22 20 23 using namespace std; 21 24 25 CREATE_FACTORY(Gravity); 22 26 23 27 /** … … 25 29 \todo this constructor is not jet implemented - do it 26 30 */ 27 Gravity::Gravity () 31 Gravity::Gravity () 28 32 { 29 this->setClassName 33 this->setClassName("Gravity"); 30 34 } 31 35 36 Gravity::Gravity(const TiXmlElement* root) 37 { 38 this->setClassName("Gravity"); 39 40 this->loadParams(root); 41 } 32 42 33 43 /** … … 35 45 36 46 */ 37 Gravity::~Gravity () 47 Gravity::~Gravity () 38 48 { 39 49 // delete what has to be deleted here 50 } 51 52 void Gravity::loadParams(const TiXmlElement* root) 53 { 54 static_cast<Field*>(this)->loadParams(root); 55 40 56 } 41 57
Note: See TracChangeset
for help on using the changeset viewer.