Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/coll_rect.merge/src/lib/collision_reaction/collision_reaction.h @ 10010

Last change on this file since 10010 was 10010, checked in by patrick, 17 years ago

merged the temp branch

File size: 875 bytes
RevLine 
[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
[10010]11class WorldEntity;
[8006]12
[10010]13namespace CoRe
14{
[8006]15
[10010]16  class Collision;
[8006]17
[10010]18  //! A class representing a simple collision
19  class CollisionReaction : public BaseObject
20  {
21    ObjectListDeclaration(CollisionReaction);
[8006]22  public:
23    CollisionReaction();
24    virtual ~CollisionReaction();
25
26    virtual void reactToCollision(Collision* collision) = 0;
27
[8490]28    /** use this to do some collision offline calculations, only called for bContinuousPoll == true */
[8029]29    inline bool isContinuousPoll() const { return this->bContinuousPoll; }
30
[8006]31  private:
[8029]32    bool                    bContinuousPoll;       //!< if true the collision rection function is also called, if there was no collision
[10010]33  };
[8006]34
[10010]35}
[8006]36#endif /* _COLLISION_REACTION_H */
Note: See TracBrowser for help on using the repository browser.