Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4728 in orxonox.OLD for orxonox/trunk/src/lib/physics/fields/field.h


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/field.h

    r4481 r4728  
    1 /* 
     1/*
    22   orxonox - the future of 3D-vertical-scrollers
    33
     
    1414*/
    1515
    16 /*! 
     16/*!
    1717    \file field.h
    1818    \brief abstract definition of a Physical Field
    1919
    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
    2121    exist on a common Level.
    2222*/
     
    2828
    2929// FORWARD DEFINITION
    30 
     30class TiXmlElement;
    3131
    3232
    3333//! An abstract class that represents a Force.
    34 class Field : public PNode 
     34class Field : public PNode
    3535{
    3636 public:
    3737  Field();
     38  Field(const TiXmlElement* root);
    3839  virtual ~Field();
    3940
    40   /**
     41  void init(void);
     42  void loadParams(const TiXmlElement* root);
     43
     44  /**
    4145      \param data This is the data given to this force, to calculate the ForceVector
    4246      \returns The Force Vector
     
    4448  virtual Vector calcForce(const Vector& data) const = 0;
    4549
    46   void setMagnitude(const float& magnitude);
     50  void setMagnitude(float magnitude);
    4751  /** \returns The Magnitude of the Field */
    4852  inline const float& getMagnitude(void) const {return this->magnitude;}
    4953
    50   void setAttenuation(const float& attenuation);
     54  void setAttenuation(float attenuation);
    5155  /** \returns The Attenuation of the Fiels */
    5256  inline const float& getAttenuation(void) const {return this->attenuation;}
Note: See TracChangeset for help on using the changeset viewer.