2013-12-10 09:57:05 +01:00
|
|
|
#ifndef GAMELOGICSTATES_H
|
|
|
|
#define GAMELOGICSTATES_H
|
2014-01-31 14:05:52 +01:00
|
|
|
#include "OysterMath.h"
|
2013-12-10 09:57:05 +01:00
|
|
|
|
2014-02-25 10:37:33 +01:00
|
|
|
|
2013-12-10 09:57:05 +01:00
|
|
|
namespace GameLogic
|
|
|
|
{
|
2014-02-25 10:37:33 +01:00
|
|
|
class Player;
|
2013-12-19 12:41:37 +01:00
|
|
|
enum PLAYER_MOVEMENT
|
|
|
|
{
|
|
|
|
PLAYER_MOVEMENT_FORWARD = 0,
|
|
|
|
PLAYER_MOVEMENT_BACKWARD = 1,
|
|
|
|
PLAYER_MOVEMENT_LEFT = 2,
|
|
|
|
PLAYER_MOVEMENT_RIGHT = 4,
|
|
|
|
PLAYER_MOVEMENT_JUMP = 8,
|
|
|
|
};
|
2013-12-20 09:42:02 +01:00
|
|
|
enum PLAYER_STATE
|
2013-12-10 09:57:05 +01:00
|
|
|
{
|
2013-12-20 09:42:02 +01:00
|
|
|
PLAYER_STATE_JUMPING = 0,
|
|
|
|
PLAYER_STATE_WALKING = 1,
|
|
|
|
PLAYER_STATE_IDLE = 2,
|
2014-01-15 11:03:25 +01:00
|
|
|
PLAYER_STATE_DEAD = 4,
|
2014-02-25 11:46:05 +01:00
|
|
|
PLAYER_STATE_DIED = 8,
|
|
|
|
PLAYER_STATE_INVALID = 16,
|
2013-12-10 09:57:05 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
enum WEAPON_FIRE
|
|
|
|
{
|
|
|
|
WEAPON_USE_PRIMARY_PRESS = 0,
|
|
|
|
WEAPON_USE_PRIMARY_RELEASE = 1,
|
|
|
|
WEAPON_USE_SECONDARY_PRESS = 2,
|
|
|
|
WEAPON_USE_SECONDARY_RELEASE = 4,
|
|
|
|
WEAPON_USE_UTILLITY_PRESS = 8,
|
|
|
|
WEAPON_USE_UTILLITY_RELEASE = 16,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum WEAPON_STATE
|
|
|
|
{
|
2014-01-15 11:03:25 +01:00
|
|
|
WEAPON_STATE_FIRING = 0,
|
2013-12-10 09:57:05 +01:00
|
|
|
WEAPON_STATE_IDLE = 1,
|
|
|
|
WEAPON_STATE_RELOADING = 2,
|
|
|
|
};
|
2013-12-12 09:36:14 +01:00
|
|
|
|
2014-01-31 14:05:52 +01:00
|
|
|
struct forcePushData
|
|
|
|
{
|
|
|
|
Oyster::Math::Float3 pushForce;
|
2014-02-25 10:37:33 +01:00
|
|
|
Player *p;
|
2014-01-31 14:05:52 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2013-12-19 10:21:03 +01:00
|
|
|
|
2013-12-12 09:36:14 +01:00
|
|
|
};
|
2013-12-10 09:57:05 +01:00
|
|
|
|
|
|
|
#endif
|