Last change
on this file since 4520 was
4480,
checked in by bensch, 19 years ago
|
orxonox/trunk: PhysicsEngine: doxytags
|
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 |
---|
11 | class PhysicsInterface; |
---|
12 | class ParticleSystem; |
---|
13 | class Field; |
---|
14 | |
---|
15 | //! An enumerator for different ConnectionTypes |
---|
16 | typedef enum PCON_Type { PCON_PhysIPhysI = 0, |
---|
17 | PCON_PhysIField = 1}; |
---|
18 | |
---|
19 | |
---|
20 | // Forward Declaration |
---|
21 | |
---|
22 | //! A class that Handles Physical Connection between subjects |
---|
23 | class PhysicsConnection : public BaseObject |
---|
24 | { |
---|
25 | |
---|
26 | public: |
---|
27 | PhysicsConnection(PhysicsInterface* subject, Field* field); |
---|
28 | // PhysicsConnection(PhysicsInterface* partnerOne, PhysicsInterface* partnerTwo); |
---|
29 | |
---|
30 | virtual ~PhysicsConnection(); |
---|
31 | |
---|
32 | void apply(void) const; |
---|
33 | |
---|
34 | private: |
---|
35 | PCON_Type type; //!< What kind of connection this is. |
---|
36 | |
---|
37 | PhysicsInterface* subject; //!< The main Subject of this Connection. |
---|
38 | PhysicsInterface* partner2; //!< The second partner of this Connection. |
---|
39 | |
---|
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.