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