2014-02-04 16:24:37 +01:00
|
|
|
#ifndef JUMPPAD_H
|
|
|
|
#define JUMPPAD_H
|
|
|
|
#include "StaticObject.h"
|
|
|
|
namespace GameLogic
|
|
|
|
{
|
|
|
|
class JumpPad : public StaticObject
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
JumpPad(void);
|
|
|
|
|
|
|
|
JumpPad(Oyster::Physics::ICustomBody *rigidBody
|
2014-02-12 15:03:40 +01:00
|
|
|
,void (*collisionFuncAfter)(Oyster::Physics::ICustomBody *proto,Oyster::Physics::ICustomBody *deuter,Oyster::Math::Float kineticEnergyLoss)
|
|
|
|
,ObjectSpecialType type, Oyster::Math::Float3 pushForce);
|
|
|
|
|
2014-02-04 16:24:37 +01:00
|
|
|
|
|
|
|
~JumpPad(void);
|
|
|
|
|
|
|
|
static void JumpPadActivated(Oyster::Physics::ICustomBody *rigidBodyJumpPad, Oyster::Physics::ICustomBody *obj, Oyster::Math::Float kineticEnergyLoss);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Oyster::Math::Float3 pushForce;
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|