Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/collision_reaction/collision_reaction.h @ 8190

Last change on this file since 8190 was 8190, checked in by patrick, 18 years ago

trunk: merged the cr branche to trunk

File size: 679 bytes
Line 
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
13class Collision;
14
15//! A class representing a simple collision
16class CollisionReaction : public BaseObject
17{
18
19  public:
20    CollisionReaction();
21    virtual ~CollisionReaction();
22
23    virtual void reactToCollision(Collision* collision) = 0;
24
25    inline bool isContinuousPoll() const { return this->bContinuousPoll; }
26
27  private:
28    bool                    bContinuousPoll;       //!< if true the collision rection function is also called, if there was no collision
29};
30
31#endif /* _COLLISION_REACTION_H */
Note: See TracBrowser for help on using the repository browser.