Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/lib/physics/physics_connection.h @ 5039

Last change on this file since 5039 was 5039, checked in by bensch, 19 years ago

orxonox/trunk: useless stuff :)

File size: 1.2 KB
RevLine 
[4597]1/*!
[5039]2 * @file physics_connection.h
[4836]3  *  Definition of The Physical Connection Class.
[3245]4*/
[1853]5
[4597]6#ifndef _PHYSICS_CONNECTION_H
[4181]7#define _PHYSICS_CONNECTION_H
[1853]8
[4381]9#include "base_object.h"
[4375]10// Forward Declaration
11class PhysicsInterface;
12class ParticleSystem;
13class Field;
[4183]14
[4181]15//! An enumerator for different ConnectionTypes
[4597]16typedef enum PCON_Type
17{
18  PCON_PhysIPhysI = 1,
19  PCON_PhysIField = 2
20};
[3543]21
22
[4181]23// Forward Declaration
[2036]24
[4731]25//! A class that Handles Physical Connection between different subjects
[4394]26class PhysicsConnection : public BaseObject
[4381]27{
[1853]28
[4182]29 public:
[4377]30  PhysicsConnection(PhysicsInterface* subject, Field* field);
[4480]31  //  PhysicsConnection(PhysicsInterface* partnerOne, PhysicsInterface* partnerTwo);
[4728]32  PhysicsConnection(const TiXmlElement* root);
[4182]33
34  virtual ~PhysicsConnection();
35
[4728]36  void setSubject(const char* subjectName);
37  void setField(const char* fieldName);
38
[4746]39  void apply() const;
[4182]40
41 private:
[4181]42  PCON_Type type;                    //!< What kind of connection this is.
[4597]43
[4375]44  PhysicsInterface* subject;         //!< The main Subject of this Connection.
45  PhysicsInterface* partner2;        //!< The second partner of this Connection.
[4597]46
[4181]47  Field* field;                      //!< The field to connect either subject of ParticleSystem to.
48};
49
50#endif /* _PHYSICS_CONNECTION_H */
Note: See TracBrowser for help on using the repository browser.