Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: useless stuff :)

File size: 1.2 KB
Line 
1/*!
2 * @file physics_connection.h
3  *  Definition of The Physical Connection Class.
4*/
5
6#ifndef _PHYSICS_CONNECTION_H
7#define _PHYSICS_CONNECTION_H
8
9#include "base_object.h"
10// Forward Declaration
11class PhysicsInterface;
12class ParticleSystem;
13class Field;
14
15//! An enumerator for different ConnectionTypes
16typedef enum PCON_Type
17{
18  PCON_PhysIPhysI = 1,
19  PCON_PhysIField = 2
20};
21
22
23// Forward Declaration
24
25//! A class that Handles Physical Connection between different subjects
26class PhysicsConnection : public BaseObject
27{
28
29 public:
30  PhysicsConnection(PhysicsInterface* subject, Field* field);
31  //  PhysicsConnection(PhysicsInterface* partnerOne, PhysicsInterface* partnerTwo);
32  PhysicsConnection(const TiXmlElement* root);
33
34  virtual ~PhysicsConnection();
35
36  void setSubject(const char* subjectName);
37  void setField(const char* fieldName);
38
39  void apply() const;
40
41 private:
42  PCON_Type type;                    //!< What kind of connection this is.
43
44  PhysicsInterface* subject;         //!< The main Subject of this Connection.
45  PhysicsInterface* partner2;        //!< The second partner of this Connection.
46
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.