24 lines
772 B
C
24 lines
772 B
C
|
#ifndef EXPLOSIVECRATE_H
|
||
|
#define EXPLOSIVECRATE_H
|
||
|
#include "DynamicObject.h"
|
||
|
namespace GameLogic
|
||
|
{
|
||
|
class ExplosiveCrate : public DynamicObject
|
||
|
{
|
||
|
public:
|
||
|
ExplosiveCrate(void);
|
||
|
|
||
|
ExplosiveCrate(Oyster::Physics::ICustomBody *rigidBody,ObjectSpecialType type,int objectID,Oyster::Math::Float shreddingDamage, Oyster::Math::Float3 pushForce, Oyster::Math::Float ExplosionRadius);
|
||
|
|
||
|
~ExplosiveCrate(void);
|
||
|
|
||
|
static void ExplosiveCrateCollision(Oyster::Physics::ICustomBody *rigidBodyCrate, Oyster::Physics::ICustomBody *obj, Oyster::Math::Float kineticEnergyLoss);
|
||
|
static void Explode(Oyster::Physics::ICustomBody *obj, void* args);
|
||
|
|
||
|
private:
|
||
|
Oyster::Math::Float shreddingDamage;
|
||
|
Oyster::Math::Float3 pushForce;
|
||
|
Oyster::Math::Float ExplosionRadius;
|
||
|
};
|
||
|
}
|
||
|
#endif
|