2013-12-10 09:57:05 +01:00
|
|
|
#ifndef GAMELOGICSTATES_H
|
|
|
|
#define GAMELOGICSTATES_H
|
|
|
|
|
2013-12-19 10:21:03 +01:00
|
|
|
#include "GameLogicDef.h"
|
2013-12-10 09:57:05 +01:00
|
|
|
|
|
|
|
namespace GameLogic
|
|
|
|
{
|
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-19 10:21:03 +01:00
|
|
|
class DANBIAS_GAMELOGIC_DLL PLAYER_STATE
|
2013-12-10 09:57:05 +01:00
|
|
|
{
|
2013-12-19 10:21:03 +01:00
|
|
|
public:
|
|
|
|
PLAYER_STATE()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
PLAYER_STATE(int value)
|
|
|
|
{
|
|
|
|
this->value = value;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const int PLAYER_STATE_JUMPING = 0;
|
|
|
|
static const int PLAYER_STATE_WALKING = 1;
|
|
|
|
static const int PLAYER_STATE_IDLE = 2;
|
|
|
|
int value;
|
|
|
|
|
|
|
|
};
|
2013-12-19 12:41:37 +01:00
|
|
|
/*
|
2013-12-19 10:21:03 +01:00
|
|
|
class DANBIAS_GAMELOGIC_DLL PLAYER_MOVEMENT
|
|
|
|
{
|
2013-12-19 12:41:37 +01:00
|
|
|
public:
|
2013-12-19 10:21:03 +01:00
|
|
|
PLAYER_MOVEMENT()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
PLAYER_MOVEMENT(int value)
|
|
|
|
{
|
|
|
|
this->value = value;
|
|
|
|
}
|
|
|
|
static const int PLAYER_MOVEMENT_FORWARD = 0;
|
|
|
|
static const int PLAYER_MOVEMENT_BACKWARD = 1;
|
|
|
|
static const int PLAYER_MOVEMENT_LEFT = 2;
|
|
|
|
static const int PLAYER_MOVEMENT_RIGHT = 4;
|
|
|
|
static const int PLAYER_MOVEMENT_JUMP = 8;
|
|
|
|
int value;
|
2013-12-10 09:57:05 +01:00
|
|
|
};
|
2013-12-19 12:41:37 +01:00
|
|
|
*/
|
2013-12-10 09:57:05 +01:00
|
|
|
|
2013-12-19 10:21:03 +01:00
|
|
|
class DANBIAS_GAMELOGIC_DLL OBJECT_TYPE
|
2013-12-10 09:57:05 +01:00
|
|
|
{
|
2013-12-19 10:21:03 +01:00
|
|
|
public:
|
|
|
|
OBJECT_TYPE()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
OBJECT_TYPE(int value)
|
|
|
|
{
|
|
|
|
this->value = value;
|
|
|
|
}
|
|
|
|
static const int OBJECT_TYPE_PLAYER = 0;
|
|
|
|
static const int OBJECT_TYPE_BOX = 1;
|
|
|
|
static const int OBJECT_TYPE_UNKNOWN = 2;
|
|
|
|
|
|
|
|
public: int value;
|
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
|
|
|
|
{
|
|
|
|
WEAPON_STATE_FIREING = 0,
|
|
|
|
WEAPON_STATE_IDLE = 1,
|
|
|
|
WEAPON_STATE_RELOADING = 2,
|
|
|
|
};
|
2013-12-12 09:36:14 +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
|