Last change
on this file since 4182 was
4182,
checked in by bensch, 19 years ago
|
orxonox/branches/physics: connection of Physical effects should work on ParticleSystems
|
File size:
1.2 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 | |
---|
[4181] | 9 | //! An enumerator for different ConnectionTypes |
---|
| 10 | typedef enum PCON_Type { PCON_IPhysIPhys = 0, |
---|
| 11 | PCON_IPhysField = 1, |
---|
| 12 | PCON_ParticlesField = 2 }; |
---|
[3543] | 13 | |
---|
| 14 | |
---|
[4181] | 15 | // Forward Declaration |
---|
| 16 | class Field; |
---|
| 17 | class IPhysics; |
---|
| 18 | class ParticleSystem; |
---|
[2036] | 19 | |
---|
[4182] | 20 | //! A class that Handles Physical Connection between subjects |
---|
| 21 | class PhysicsConnection { |
---|
[1853] | 22 | |
---|
[4182] | 23 | public: |
---|
| 24 | PhysicsConnection(IPhysics* partnerOne, IPhysics* partnerTwo); |
---|
| 25 | PhysicsConnection(IPhysics* subject, Field* field); |
---|
| 26 | PhysicsConnection(ParticleSystem* particleSystem, Field* field); |
---|
| 27 | |
---|
| 28 | virtual ~PhysicsConnection(); |
---|
| 29 | |
---|
| 30 | void apply(void) const; |
---|
| 31 | |
---|
| 32 | private: |
---|
[4181] | 33 | PCON_Type type; //!< What kind of connection this is. |
---|
[4182] | 34 | |
---|
[4181] | 35 | IPhysics* subject; //!< The main Subject of this Connection. |
---|
| 36 | IPhysics* partner2; //!< The second partner of this Connection. |
---|
[4182] | 37 | |
---|
[4181] | 38 | ParticleSystem* particleSystem; //!< A ParticleSystem in 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.