2013-12-13 11:06:03 +01:00
|
|
|
//////////////////////////////////////////////////
|
|
|
|
//Created by Erik of the GameLogic team
|
|
|
|
//////////////////////////////////////////////////
|
2013-12-10 09:57:05 +01:00
|
|
|
#ifndef ATTATCHMENTMASSDRIVER_H
|
|
|
|
#define ATTATCHMENTMASSDRIVER_H
|
|
|
|
#include "IAttatchment.h"
|
|
|
|
namespace GameLogic
|
|
|
|
{
|
|
|
|
|
|
|
|
class AttatchmentMassDriver : public IAttatchment
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
AttatchmentMassDriver(void);
|
2013-12-12 12:16:13 +01:00
|
|
|
AttatchmentMassDriver(Player &owner);
|
2013-12-10 09:57:05 +01:00
|
|
|
~AttatchmentMassDriver(void);
|
|
|
|
|
|
|
|
|
2014-01-21 15:46:54 +01:00
|
|
|
void UseAttatchment(const WEAPON_FIRE &usage, float dt);
|
2013-12-10 09:57:05 +01:00
|
|
|
|
|
|
|
private:
|
2013-12-18 08:30:58 +01:00
|
|
|
/********************************************************
|
|
|
|
* Pushes objects and players in a cone in front of the player
|
|
|
|
* @param fireInput: allows switching on different functionality in this specific function
|
|
|
|
********************************************************/
|
2014-01-21 15:46:54 +01:00
|
|
|
void ForcePush(const WEAPON_FIRE &usage, float dt);
|
2013-12-18 08:30:58 +01:00
|
|
|
|
|
|
|
/********************************************************
|
|
|
|
* Pulls the player forward, this is a movement tool
|
|
|
|
* @param fireInput: allows switching on different functionality in this specific function
|
|
|
|
********************************************************/
|
2014-01-21 15:46:54 +01:00
|
|
|
void ForcePull(const WEAPON_FIRE &usage, float dt);
|
2013-12-10 09:57:05 +01:00
|
|
|
|
2013-12-18 08:30:58 +01:00
|
|
|
/********************************************************
|
|
|
|
* Sucks objects towards the player, the player can then pick up an object and throw it as a projectile
|
|
|
|
* @param fireInput: allows switching on different functionality in this specific function
|
|
|
|
********************************************************/
|
2014-01-21 15:46:54 +01:00
|
|
|
void ForceSuck(const WEAPON_FIRE &usage, float dt);
|
2013-12-18 08:30:58 +01:00
|
|
|
|
2014-01-22 13:02:13 +01:00
|
|
|
void ForcePushAction(Oyster::Physics::ICustomBody *obj);
|
|
|
|
|
2013-12-10 09:57:05 +01:00
|
|
|
private:
|
2014-01-21 15:46:54 +01:00
|
|
|
|
2013-12-10 09:57:05 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|