Last change
on this file since 8453 was
8190,
checked in by patrick, 18 years ago
|
trunk: merged the cr branche to trunk
|
File size:
679 bytes
|
Rev | Line | |
---|
[8006] | 1 | /*! |
---|
| 2 | * @file collision_reaction.h |
---|
| 3 | * Definition of a generic collision reaction |
---|
| 4 | */ |
---|
| 5 | |
---|
| 6 | #ifndef _COLLISION_REACTION_H |
---|
| 7 | #define _COLLISION_REACTION_H |
---|
| 8 | |
---|
| 9 | #include "base_object.h" |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | |
---|
| 13 | class Collision; |
---|
| 14 | |
---|
| 15 | //! A class representing a simple collision |
---|
| 16 | class CollisionReaction : public BaseObject |
---|
| 17 | { |
---|
| 18 | |
---|
| 19 | public: |
---|
| 20 | CollisionReaction(); |
---|
| 21 | virtual ~CollisionReaction(); |
---|
| 22 | |
---|
| 23 | virtual void reactToCollision(Collision* collision) = 0; |
---|
| 24 | |
---|
[8029] | 25 | inline bool isContinuousPoll() const { return this->bContinuousPoll; } |
---|
| 26 | |
---|
[8006] | 27 | private: |
---|
[8029] | 28 | bool bContinuousPoll; //!< if true the collision rection function is also called, if there was no collision |
---|
[8006] | 29 | }; |
---|
| 30 | |
---|
| 31 | #endif /* _COLLISION_REACTION_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.