Last change
on this file since 4730 was
4728,
checked in by bensch, 19 years ago
|
orxonox/trunk: more loading (especially for physics)
|
File size:
1.2 KB
|
Rev | Line | |
---|
[4597] | 1 | /*! |
---|
[4181] | 2 | \file physics_connection.h |
---|
| 3 | \brief Definition of The Physical Connection Class. |
---|
[3245] | 4 | */ |
---|
[1853] | 5 | |
---|
[4597] | 6 | #ifndef _PHYSICS_CONNECTION_H |
---|
[4181] | 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 |
---|
[4597] | 16 | typedef enum PCON_Type |
---|
| 17 | { |
---|
| 18 | PCON_PhysIPhysI = 1, |
---|
| 19 | PCON_PhysIField = 2 |
---|
| 20 | }; |
---|
[3543] | 21 | |
---|
| 22 | |
---|
[4181] | 23 | // Forward Declaration |
---|
[2036] | 24 | |
---|
[4182] | 25 | //! A class that Handles Physical Connection between subjects |
---|
[4394] | 26 | class PhysicsConnection : public BaseObject |
---|
[4381] | 27 | { |
---|
[1853] | 28 | |
---|
[4182] | 29 | public: |
---|
[4377] | 30 | PhysicsConnection(PhysicsInterface* subject, Field* field); |
---|
[4480] | 31 | // PhysicsConnection(PhysicsInterface* partnerOne, PhysicsInterface* partnerTwo); |
---|
[4728] | 32 | PhysicsConnection(const TiXmlElement* root); |
---|
[4182] | 33 | |
---|
| 34 | virtual ~PhysicsConnection(); |
---|
| 35 | |
---|
[4728] | 36 | void setSubject(const char* subjectName); |
---|
| 37 | void setField(const char* fieldName); |
---|
| 38 | |
---|
[4395] | 39 | void apply(void) const; |
---|
[4182] | 40 | |
---|
| 41 | private: |
---|
[4181] | 42 | PCON_Type type; //!< What kind of connection this is. |
---|
[4597] | 43 | |
---|
[4375] | 44 | PhysicsInterface* subject; //!< The main Subject of this Connection. |
---|
| 45 | PhysicsInterface* partner2; //!< The second partner of this Connection. |
---|
[4597] | 46 | |
---|
[4181] | 47 | Field* field; //!< The field to connect either subject of ParticleSystem to. |
---|
| 48 | }; |
---|
| 49 | |
---|
| 50 | #endif /* _PHYSICS_CONNECTION_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.