source:
orxonox.OLD/orxonox/trunk/src/lib/physics/physics_connection.h
@
4480
Last change on this file since 4480 was 4480, checked in by bensch, 19 years ago | |
---|---|
File size: 1.1 KB |
Rev | Line | |
---|---|---|
[3245] | 1 | /*! |
[4181] | 2 | \file physics_connection.h |
3 | \brief Definition of The Physical Connection Class. | |
[3245] | 4 | */ |
[1853] | 5 | |
[4181] | 6 | #ifndef _PHYSICS_CONNECTION_H |
7 | #define _PHYSICS_CONNECTION_H | |
[1853] | 8 | |
[4381] | 9 | #include "base_object.h" |
[4375] | 10 | // Forward Declaration |
11 | class PhysicsInterface; | |
12 | class ParticleSystem; | |
13 | class Field; | |
[4183] | 14 | |
[4181] | 15 | //! An enumerator for different ConnectionTypes |
[4375] | 16 | typedef enum PCON_Type { PCON_PhysIPhysI = 0, |
[4377] | 17 | PCON_PhysIField = 1}; |
[3543] | 18 | |
19 | ||
[4181] | 20 | // Forward Declaration |
[2036] | 21 | |
[4182] | 22 | //! A class that Handles Physical Connection between subjects |
[4394] | 23 | class PhysicsConnection : public BaseObject |
[4381] | 24 | { |
[1853] | 25 | |
[4182] | 26 | public: |
[4377] | 27 | PhysicsConnection(PhysicsInterface* subject, Field* field); |
[4480] | 28 | // PhysicsConnection(PhysicsInterface* partnerOne, PhysicsInterface* partnerTwo); |
[4182] | 29 | |
30 | virtual ~PhysicsConnection(); | |
31 | ||
[4395] | 32 | void apply(void) const; |
[4182] | 33 | |
34 | private: | |
[4181] | 35 | PCON_Type type; //!< What kind of connection this is. |
[4182] | 36 | |
[4375] | 37 | PhysicsInterface* subject; //!< The main Subject of this Connection. |
38 | PhysicsInterface* partner2; //!< The second partner of this Connection. | |
[4182] | 39 | |
[4181] | 40 | Field* field; //!< The field to connect either subject of ParticleSystem to. |
41 | }; | |
42 | ||
43 | #endif /* _PHYSICS_CONNECTION_H */ |
Note: See TracBrowser
for help on using the repository browser.