Danbias/Code/Game/GameLogic/StaticObject.cpp

45 lines
1.1 KiB
C++
Raw Normal View History

#include "StaticObject.h"
#include "CollisionManager.h"
2013-11-20 16:01:39 +01:00
using namespace GameLogic;
2013-12-05 11:50:39 +01:00
StaticObject::StaticObject()
:Object()
2013-12-05 11:50:39 +01:00
{
}
2014-02-12 14:48:58 +01:00
StaticObject::StaticObject(ObjectSpecialType type)
:Object(type)
{
2014-01-23 08:57:46 +01:00
}
2014-02-12 14:48:58 +01:00
StaticObject::StaticObject(Oyster::Physics::ICustomBody *rigidBody, ObjectSpecialType type)
:Object(rigidBody,type)
2014-01-23 08:57:46 +01:00
{
2014-02-09 21:24:09 +01:00
//this->rigidBody->SetGravity(true);
//this->rigidBody->SetSubscription((Oyster::Physics::ICustomBody::EventAction_BeforeCollisionResponse)(CollisionManager::IgnoreCollision));
2014-01-23 09:14:04 +01:00
}
2014-02-12 14:48:58 +01:00
StaticObject::StaticObject( void* collisionFuncAfter, ObjectSpecialType type)
:Object(collisionFuncAfter,type)
2014-01-23 09:14:04 +01:00
{
}
2014-02-12 14:48:58 +01:00
StaticObject::StaticObject(Oyster::Physics::ICustomBody *rigidBody , void* collisionFuncAfter, ObjectSpecialType type)
:Object(rigidBody, collisionFuncAfter, type)
2014-01-27 08:54:25 +01:00
{
}
2014-02-12 14:48:58 +01:00
StaticObject::StaticObject(Oyster::Physics::ICustomBody *rigidBody , Oyster::Physics::ICustomBody::SubscriptMessage (*collisionFuncAfter)(Oyster::Physics::ICustomBody *proto,Oyster::Physics::ICustomBody *deuter,Oyster::Math::Float kineticEnergyLoss), ObjectSpecialType type)
:Object(rigidBody, collisionFuncAfter, type)
{
}
StaticObject::~StaticObject(void)
{
}