| Line | |
|---|
| 1 | /*! |
|---|
| 2 | * @file cr_object_damage.h |
|---|
| 3 | * Definition of a collision reaction: dealing damage to an object |
|---|
| 4 | */ |
|---|
| 5 | |
|---|
| 6 | #ifndef _CR_OBJECT_DAMAGE_H |
|---|
| 7 | #define _CR_OBJECT_DAMAGE_H |
|---|
| 8 | |
|---|
| 9 | #include "collision_reaction.h" |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | class Collision; |
|---|
| 13 | |
|---|
| 14 | //! A class representing a reaction to a collision: dealing damage to an object |
|---|
| 15 | class CRObjectDamage : public CollisionReaction |
|---|
| 16 | { |
|---|
| 17 | ObjectListDeclaration(CRObjectDamage); |
|---|
| 18 | public: |
|---|
| 19 | CRObjectDamage(); |
|---|
| 20 | virtual ~CRObjectDamage(); |
|---|
| 21 | |
|---|
| 22 | virtual void reactToCollision(Collision* collision); |
|---|
| 23 | |
|---|
| 24 | private: |
|---|
| 25 | |
|---|
| 26 | }; |
|---|
| 27 | |
|---|
| 28 | #endif /* _CR_OBJECT_DAMAGE_H */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.