Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 13, 2005, 11:39:44 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/physics: definition of the ground-class: field

File:
1 copied

Legend:

Unmodified
Added
Removed
  • orxonox/branches/physics/src/util/physics/field.cc

    r4178 r4179  
    1010
    1111   ### File Specific:
    12    main-programmer: ...
     12   main-programmer: Benjamin Grauer
    1313   co-programmer: ...
    1414*/
     
    1616//#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_
    1717
    18 #include "proto_class.h"
     18#include "field.h"
    1919
    2020using namespace std;
     
    2525   \todo this constructor is not jet implemented - do it
    2626*/
    27 ProtoClass::ProtoClass ()
     27Field::Field ()
    2828{
    29    this->setClassName ("ProtoClass");
     29   this->setClassName ("Field");
    3030}
    3131
     
    3535
    3636*/
    37 ProtoClass::~ProtoClass ()
     37Field::~Field ()
    3838{
    3939  // delete what has to be deleted here
    4040}
     41
     42
     43/**
     44   \param magnitude the magnitude of the Field.
     45*/
     46void Field::setMagnitude(const float& magnitude)
     47{
     48  this->magnitude = magnitude;
     49}
     50
     51/**
     52   \param attenuation The attenuation of the Field (the bigger the smaller the region of influence)
     53*/
     54void Field::setAttenuation(const float& attenuation)
     55{
     56  this->attenuation = attenuation;
     57}
Note: See TracChangeset for help on using the changeset viewer.