Changeset 4746 in orxonox.OLD for orxonox/trunk/src/lib/physics
- Timestamp:
- Jul 1, 2005, 12:48:48 PM (20 years ago)
- Location:
- orxonox/trunk/src/lib/physics
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/physics/fields/field.cc
r4730 r4746 44 44 \brief initializes a Field 45 45 */ 46 void Field::init( void)46 void Field::init() 47 47 { 48 48 this->setClassID(CL_FIELD, "Field"); -
orxonox/trunk/src/lib/physics/fields/field.h
r4730 r4746 38 38 virtual ~Field(); 39 39 40 void init( void);40 void init(); 41 41 void loadParams(const TiXmlElement* root); 42 42 … … 49 49 void setMagnitude(float magnitude); 50 50 /** \returns The Magnitude of the Field */ 51 inline const float& getMagnitude( void) const {return this->magnitude;}51 inline const float& getMagnitude() const {return this->magnitude;} 52 52 53 53 void setAttenuation(float attenuation); 54 54 /** \returns The Attenuation of the Fiels */ 55 inline const float& getAttenuation( void) const {return this->attenuation;}55 inline const float& getAttenuation() const {return this->attenuation;} 56 56 57 57 private: -
orxonox/trunk/src/lib/physics/physics_connection.cc
r4731 r4746 101 101 \brief applies the Force to some Object. 102 102 */ 103 void PhysicsConnection::apply( void) const103 void PhysicsConnection::apply() const 104 104 { 105 105 if (likely(this->type == PCON_PhysIField && this->field->getMagnitude() != 0.0 -
orxonox/trunk/src/lib/physics/physics_connection.h
r4731 r4746 37 37 void setField(const char* fieldName); 38 38 39 void apply( void) const;39 void apply() const; 40 40 41 41 private: -
orxonox/trunk/src/lib/physics/physics_engine.cc
r4733 r4746 31 31 \brief standard constructor 32 32 */ 33 PhysicsEngine::PhysicsEngine( void)33 PhysicsEngine::PhysicsEngine() 34 34 { 35 35 this->setClassID(CL_PHYSICS_ENGINE, "PhysicsEngine"); … … 49 49 50 50 */ 51 PhysicsEngine::~PhysicsEngine( void)51 PhysicsEngine::~PhysicsEngine() 52 52 { 53 53 PhysicsEngine::singletonRef = NULL; … … 268 268 \brief print out interesting debug information of this class 269 269 */ 270 void PhysicsEngine::debug( void) const270 void PhysicsEngine::debug() const 271 271 { 272 272 PRINT(0)("====================================\n"); -
orxonox/trunk/src/lib/physics/physics_engine.h
r4733 r4746 22 22 23 23 public: 24 virtual ~PhysicsEngine( void);24 virtual ~PhysicsEngine(); 25 25 /** \returns a Pointer to the only object of this Class */ 26 inline static PhysicsEngine* getInstance( void) { if (!singletonRef) singletonRef = new PhysicsEngine(); return singletonRef; };26 inline static PhysicsEngine* getInstance() { if (!singletonRef) singletonRef = new PhysicsEngine(); return singletonRef; }; 27 27 28 28 void loadParams(const TiXmlElement* root); … … 45 45 void tick(float dt); 46 46 47 void debug( void) const;47 void debug() const; 48 48 49 49 private: 50 PhysicsEngine( void);50 PhysicsEngine(); 51 51 52 52 private:
Note: See TracChangeset
for help on using the changeset viewer.