2013-11-26 09:19:59 +01:00
|
|
|
#ifndef COLLISIONMANAGER_H
|
|
|
|
#define COLLISIONMANAGER_H
|
|
|
|
|
|
|
|
#include "Object.h"
|
|
|
|
#include "PhysicsAPI.h"
|
|
|
|
|
|
|
|
namespace GameLogic
|
|
|
|
{
|
|
|
|
|
2013-12-19 12:32:23 +01:00
|
|
|
class CollisionManager
|
2013-11-26 09:19:59 +01:00
|
|
|
{
|
2013-12-19 12:32:23 +01:00
|
|
|
public:
|
2013-11-29 10:03:32 +01:00
|
|
|
//these are the main collision functions
|
2013-12-03 11:47:04 +01:00
|
|
|
//typedef SubscriptMessage (*EventAction_Collision)( const ICustomBody *proto, const ICustomBody *deuter );
|
2013-12-19 12:32:23 +01:00
|
|
|
static Oyster::Physics::ICustomBody::SubscriptMessage PlayerCollision(const Oyster::Physics::ICustomBody *rigidBodyPlayer, const Oyster::Physics::ICustomBody *obj);
|
|
|
|
static Oyster::Physics::ICustomBody::SubscriptMessage BoxCollision(const Oyster::Physics::ICustomBody *rigidBodyBox, const Oyster::Physics::ICustomBody *obj);
|
2014-01-16 11:40:29 +01:00
|
|
|
static Oyster::Physics::ICustomBody::SubscriptMessage LevelCollision(const Oyster::Physics::ICustomBody *rigidBodyLevel, const Oyster::Physics::ICustomBody *obj);
|
2013-11-29 10:03:32 +01:00
|
|
|
//these are the specific collision case functions
|
2013-12-12 09:36:14 +01:00
|
|
|
//void PlayerVBox(Player &player, DynamicObject &box);
|
|
|
|
//void BoxVBox(DynamicObject &box1, DynamicObject &box2);
|
2013-11-28 11:23:11 +01:00
|
|
|
|
2013-11-26 09:19:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|