2013-11-20 14:25:37 +01:00
|
|
|
#include "StaticObject.h"
|
2014-02-03 15:32:46 +01:00
|
|
|
#include "CollisionManager.h"
|
2013-11-20 14:25:37 +01:00
|
|
|
|
2013-11-20 16:01:39 +01:00
|
|
|
using namespace GameLogic;
|
2013-11-20 14:25:37 +01:00
|
|
|
|
2013-12-05 11:50:39 +01:00
|
|
|
|
|
|
|
|
|
|
|
StaticObject::StaticObject()
|
2013-12-12 09:36:14 +01:00
|
|
|
:Object()
|
2013-12-05 11:50:39 +01:00
|
|
|
{
|
2013-12-12 09:36:14 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2014-02-14 09:53:02 +01:00
|
|
|
StaticObject::StaticObject(Oyster::Physics::ICustomBody *rigidBody , void (*EventOnCollision)(Oyster::Physics::ICustomBody *proto,Oyster::Physics::ICustomBody *deuter,Oyster::Math::Float kineticEnergyLoss), ObjectSpecialType type, int objectID)
|
|
|
|
:Object(rigidBody, EventOnCollision, type, objectID)
|
2014-01-23 08:57:46 +01:00
|
|
|
{
|
2014-02-14 09:53:02 +01:00
|
|
|
//use setMass(when it is made) and set the mass to 0 in order to ensure that the object is static
|
2014-01-23 09:14:04 +01:00
|
|
|
}
|
2014-01-29 14:33:21 +01:00
|
|
|
|
2014-02-14 09:53:02 +01:00
|
|
|
StaticObject::StaticObject(Oyster::Physics::ICustomBody *rigidBody , Oyster::Physics::ICustomBody::SubscriptMessage (*EventOnCollision)(Oyster::Physics::ICustomBody *proto,Oyster::Physics::ICustomBody *deuter,Oyster::Math::Float kineticEnergyLoss), ObjectSpecialType type, int objectID)
|
|
|
|
:Object(rigidBody, EventOnCollision, type, objectID)
|
2014-01-27 08:54:25 +01:00
|
|
|
{
|
2014-02-14 09:53:02 +01:00
|
|
|
//use setMass(when it is made) and set the mass to 0 in order to ensure that the object is static
|
2014-01-29 14:33:21 +01:00
|
|
|
}
|
2013-11-20 14:25:37 +01:00
|
|
|
|
2014-02-14 11:16:02 +01:00
|
|
|
StaticObject::StaticObject(Oyster::Physics::ICustomBody *rigidBody , void (*EventOnCollision)(Oyster::Physics::ICustomBody *proto,Oyster::Physics::ICustomBody *deuter,Oyster::Math::Float kineticEnergyLoss), ObjectSpecialType type, int objectID, Oyster::Math::Float extraDamageOnCollision)
|
|
|
|
{
|
|
|
|
this->extraDamageOnCollision = extraDamageOnCollision;
|
|
|
|
//use setMass(when it is made) and set the mass to 0 in order to ensure that the object is static
|
|
|
|
}
|
|
|
|
|
|
|
|
StaticObject::StaticObject(Oyster::Physics::ICustomBody *rigidBody , Oyster::Physics::ICustomBody::SubscriptMessage (*EventOnCollision)(Oyster::Physics::ICustomBody *proto,Oyster::Physics::ICustomBody *deuter,Oyster::Math::Float kineticEnergyLoss), ObjectSpecialType type, int objectID, Oyster::Math::Float extraDamageOnCollision)
|
|
|
|
{
|
|
|
|
this->extraDamageOnCollision = extraDamageOnCollision;
|
|
|
|
//use setMass(when it is made) and set the mass to 0 in order to ensure that the object is static
|
|
|
|
}
|
2013-11-20 14:25:37 +01:00
|
|
|
StaticObject::~StaticObject(void)
|
|
|
|
{
|
2013-12-12 09:36:14 +01:00
|
|
|
|
2013-11-20 14:25:37 +01:00
|
|
|
}
|