Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 28, 2005, 11:56:46 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: more loading (especially for physics)

File:
1 edited

Legend:

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

    r4396 r4728  
    1 /* 
     1/*
    22   orxonox - the future of 3D-vertical-scrollers
    33
     
    1818#include "gravity.h"
    1919
     20#include "load_param.h"
     21#include "factory.h"
     22
    2023using namespace std;
    2124
     25CREATE_FACTORY(Gravity);
    2226
    2327/**
     
    2529   \todo this constructor is not jet implemented - do it
    2630*/
    27 Gravity::Gravity () 
     31Gravity::Gravity ()
    2832{
    29    this->setClassName ("Gravity");
     33   this->setClassName("Gravity");
    3034}
    3135
     36Gravity::Gravity(const TiXmlElement* root)
     37{
     38  this->setClassName("Gravity");
     39
     40  this->loadParams(root);
     41}
    3242
    3343/**
     
    3545
    3646*/
    37 Gravity::~Gravity () 
     47Gravity::~Gravity ()
    3848{
    3949  // delete what has to be deleted here
     50}
     51
     52void Gravity::loadParams(const TiXmlElement* root)
     53{
     54  static_cast<Field*>(this)->loadParams(root);
     55
    4056}
    4157
Note: See TracChangeset for help on using the changeset viewer.