Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4742 in orxonox.OLD for orxonox/trunk/src/lib/physics/fields


Ignore:
Timestamp:
Jun 30, 2005, 4:38:33 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: BaseObject now only knows setClassID → standartisation

Location:
orxonox/trunk/src/lib/physics/fields
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/physics/fields/gravity.cc

    r4730 r4742  
    2525CREATE_FACTORY(Gravity);
    2626
    27 /**
    28    \brief standard constructor
    29    \todo this constructor is not jet implemented - do it
    30 */
    31 Gravity::Gravity ()
    32 {
    33    this->setClassName("Gravity");
    34 }
    35 
    3627Gravity::Gravity(const TiXmlElement* root)
    3728{
    38   this->setClassName("Gravity");
     29  this->setClassID(CL_FIELD_GRAVITY, "Gravity");
    3930
    40   this->loadParams(root);
     31  if (root != NULL)
     32    this->loadParams(root);
    4133}
    4234
  • orxonox/trunk/src/lib/physics/fields/gravity.h

    r4728 r4742  
    1818
    1919 public:
    20   Gravity();
    21   Gravity(const TiXmlElement* root);
     20  Gravity(const TiXmlElement* root = NULL);
    2221  virtual ~Gravity();
    2322
  • orxonox/trunk/src/lib/physics/fields/point_gravity.cc

    r4395 r4742  
    1 /* 
     1/*
    22   orxonox - the future of 3D-vertical-scrollers
    33
     
    2525   \todo this constructor is not jet implemented - do it
    2626*/
    27 PointGravity::PointGravity () 
     27PointGravity::PointGravity ()
    2828{
    29    this->setClassName ("PointGravity");
     29   this->setClassID(CL_FIELD_POINT_GRAVITY, "PointGravity");
    3030}
    3131
     
    3535
    3636*/
    37 PointGravity::~PointGravity () 
     37PointGravity::~PointGravity ()
    3838{
    3939  // delete what has to be deleted here
  • orxonox/trunk/src/lib/physics/fields/twirl.cc

    r4395 r4742  
    1 /* 
     1/*
    22   orxonox - the future of 3D-vertical-scrollers
    33
     
    2525   \todo this constructor is not jet implemented - do it
    2626*/
    27 Twirl::Twirl () 
     27Twirl::Twirl ()
    2828{
    29    this->setClassName ("Twirl");
     29   this->setClassID(CL_FIELD_TWIRL, "Twirl");
    3030}
    3131
     
    3535
    3636*/
    37 Twirl::~Twirl () 
     37Twirl::~Twirl ()
    3838{
    3939  // delete what has to be deleted here
Note: See TracChangeset for help on using the changeset viewer.