Line | |
---|
1 | /*! |
---|
2 | * @file collision.h |
---|
3 | * Definition of a collision event |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _COLLISION_H |
---|
7 | #define _COLLISION_H |
---|
8 | |
---|
9 | #include "vector.h" |
---|
10 | |
---|
11 | class WorldEntity; |
---|
12 | class BoundingVolume; |
---|
13 | |
---|
14 | |
---|
15 | //! A class representing a simple collision |
---|
16 | class Collision { |
---|
17 | |
---|
18 | public: |
---|
19 | Collision(); |
---|
20 | virtual ~Collision(); |
---|
21 | |
---|
22 | |
---|
23 | |
---|
24 | private: |
---|
25 | WorldEntity* entityA; //!< the collision body A |
---|
26 | WorldEntity* entityB; //!< the collision body B |
---|
27 | |
---|
28 | BoundingVolume* bvA; //!< reference to the bounding volume A |
---|
29 | BoundingVolume* bvB; //!< reference to the bounding volume B |
---|
30 | }; |
---|
31 | |
---|
32 | #endif /* _COLLISION_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.