Last change
on this file since 4839 was
4836,
checked in by bensch, 19 years ago
|
orxonox/trunk: renamed all the \param → @param and so on in Doxygen tags.
Thanks a lot to the kDevelop team. this took since the last commit
|
File size:
1.2 KB
|
Line | |
---|
1 | /*! |
---|
2 | \file physics_connection.h |
---|
3 | * 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 |
---|
17 | { |
---|
18 | PCON_PhysIPhysI = 1, |
---|
19 | PCON_PhysIField = 2 |
---|
20 | }; |
---|
21 | |
---|
22 | |
---|
23 | // Forward Declaration |
---|
24 | |
---|
25 | //! A class that Handles Physical Connection between different subjects |
---|
26 | class PhysicsConnection : public BaseObject |
---|
27 | { |
---|
28 | |
---|
29 | public: |
---|
30 | PhysicsConnection(PhysicsInterface* subject, Field* field); |
---|
31 | // PhysicsConnection(PhysicsInterface* partnerOne, PhysicsInterface* partnerTwo); |
---|
32 | PhysicsConnection(const TiXmlElement* root); |
---|
33 | |
---|
34 | virtual ~PhysicsConnection(); |
---|
35 | |
---|
36 | void setSubject(const char* subjectName); |
---|
37 | void setField(const char* fieldName); |
---|
38 | |
---|
39 | void apply() const; |
---|
40 | |
---|
41 | private: |
---|
42 | PCON_Type type; //!< What kind of connection this is. |
---|
43 | |
---|
44 | PhysicsInterface* subject; //!< The main Subject of this Connection. |
---|
45 | PhysicsInterface* partner2; //!< The second partner of this Connection. |
---|
46 | |
---|
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.