2014-02-14 09:53:02 +01:00
|
|
|
#include "ExplosiveCrate.h"
|
|
|
|
|
|
|
|
using namespace GameLogic;
|
|
|
|
|
|
|
|
ExplosiveCrate::ExplosiveCrate(void)
|
|
|
|
:DynamicObject()
|
|
|
|
{
|
2014-02-14 10:56:38 +01:00
|
|
|
this->pushForceMagnitude = 0;
|
2014-02-14 09:53:02 +01:00
|
|
|
this->ExplosionRadius = 0;
|
2014-02-21 15:02:42 +01:00
|
|
|
this->hasExploaded = false;
|
2014-02-14 09:53:02 +01:00
|
|
|
}
|
|
|
|
|
2014-02-14 10:56:38 +01:00
|
|
|
ExplosiveCrate::ExplosiveCrate(Oyster::Physics::ICustomBody *rigidBody,ObjectSpecialType type, int objectID,Oyster::Math::Float extraDamageOnCollision, Oyster::Math::Float pushForceMagnitude, Oyster::Math::Float ExplosionRadius)
|
2014-02-14 09:53:02 +01:00
|
|
|
:DynamicObject(rigidBody,ExplosiveCrate::ExplosiveCrateCollision, type, objectID)
|
|
|
|
{
|
2014-02-14 10:56:38 +01:00
|
|
|
this->extraDamageOnCollision = extraDamageOnCollision;
|
|
|
|
this->pushForceMagnitude = pushForceMagnitude;
|
2014-02-14 09:53:02 +01:00
|
|
|
this->ExplosionRadius = ExplosionRadius;
|
2014-02-21 15:02:42 +01:00
|
|
|
this->hasExploaded = false;
|
2014-02-14 09:53:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
ExplosiveCrate::~ExplosiveCrate(void)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|