Last change
on this file since 9898 was
9889,
checked in by patrick, 18 years ago
|
added namspacing to collision reaction. now comes the harder part
|
File size:
700 bytes
|
Rev | Line | |
---|
[8200] | 1 | /*! |
---|
| 2 | * @file cr_object_damage.h |
---|
| 3 | * Definition of a collision reaction: dealing damage to an object |
---|
| 4 | */ |
---|
| 5 | |
---|
| 6 | #ifndef _CR_PHYSICS_GROUND_WALK_H |
---|
| 7 | #define _CR_PHYSICS_GROUND_WALK_H |
---|
| 8 | |
---|
| 9 | #include "collision_reaction.h" |
---|
| 10 | |
---|
[9889] | 11 | namespace CoRe |
---|
| 12 | { |
---|
[8200] | 13 | |
---|
[9889] | 14 | class Collision; |
---|
[8200] | 15 | |
---|
[9889] | 16 | //! A class representing a reaction to a collision: dealing damage to an object |
---|
| 17 | class CRPhysicsGroundWalk : public CollisionReaction |
---|
| 18 | { |
---|
| 19 | ObjectListDeclaration(CRPhysicsGroundWalk); |
---|
[8200] | 20 | public: |
---|
| 21 | CRPhysicsGroundWalk(); |
---|
| 22 | virtual ~CRPhysicsGroundWalk(); |
---|
| 23 | |
---|
| 24 | virtual void reactToCollision(Collision* collision); |
---|
| 25 | |
---|
[8256] | 26 | virtual void update(WorldEntity* entity); |
---|
| 27 | |
---|
[8894] | 28 | |
---|
[8200] | 29 | private: |
---|
[8724] | 30 | float downspeed; |
---|
[9889] | 31 | }; |
---|
[8200] | 32 | |
---|
[9889] | 33 | } |
---|
[8200] | 34 | #endif /* _CR_PHYSICS_GROUND_WALK_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.