38 lines
1.6 KiB
C++
38 lines
1.6 KiB
C++
#include "DynamicObject.h"
|
|
#include "CollisionManager.h"
|
|
|
|
using namespace GameLogic;
|
|
|
|
|
|
DynamicObject::DynamicObject()
|
|
:Object()
|
|
{
|
|
|
|
}
|
|
|
|
DynamicObject::DynamicObject(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)
|
|
{
|
|
|
|
}
|
|
DynamicObject::DynamicObject(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)
|
|
{
|
|
|
|
}
|
|
|
|
DynamicObject::DynamicObject(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)
|
|
:Object(rigidBody, EventOnCollision, type, objectID)
|
|
{
|
|
this->extraDamageOnCollision = extraDamageOnCollision;
|
|
}
|
|
|
|
DynamicObject::DynamicObject(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)
|
|
:Object(rigidBody, EventOnCollision, type, objectID)
|
|
{
|
|
this->extraDamageOnCollision = extraDamageOnCollision;
|
|
}
|
|
DynamicObject::~DynamicObject(void)
|
|
{
|
|
|
|
} |