Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: setClassID implemented in all files

File size: 1.1 KB
Line 
1/*!
2    \file physics_connection.h
3    \brief 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 subjects
26class PhysicsConnection : public BaseObject
27{
28
29 public:
30  PhysicsConnection(PhysicsInterface* subject, Field* field);
31  //  PhysicsConnection(PhysicsInterface* partnerOne, PhysicsInterface* partnerTwo);
32
33  virtual ~PhysicsConnection();
34
35  void apply(void) const;
36
37 private:
38  PCON_Type type;                    //!< What kind of connection this is.
39
40  PhysicsInterface* subject;         //!< The main Subject of this Connection.
41  PhysicsInterface* partner2;        //!< The second partner of this Connection.
42
43  Field* field;                      //!< The field to connect either subject of ParticleSystem to.
44};
45
46#endif /* _PHYSICS_CONNECTION_H */
Note: See TracBrowser for help on using the repository browser.