2013-11-28 08:33:29 +01:00
|
|
|
//////////////////////////////////////////////////
|
|
|
|
//Created by Erik and Linda of the GameLogic team
|
|
|
|
//////////////////////////////////////////////////
|
2013-11-20 16:01:39 +01:00
|
|
|
|
2013-11-20 15:47:11 +01:00
|
|
|
#ifndef IGAME_H
|
|
|
|
#define IGAME_H
|
|
|
|
|
2013-11-25 12:33:27 +01:00
|
|
|
#if defined GAME_DLL_EXPORT
|
2013-11-25 12:36:25 +01:00
|
|
|
#define GAME_DLL_USAGE __declspec(dllexport)
|
2013-11-20 15:47:11 +01:00
|
|
|
#else
|
2013-11-25 12:36:25 +01:00
|
|
|
#define GAME_DLL_USAGE __declspec(dllimport)
|
2013-11-20 15:47:11 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
namespace GameLogic
|
|
|
|
{
|
|
|
|
class Game;
|
2013-11-27 16:17:47 +01:00
|
|
|
|
|
|
|
enum keyInput
|
|
|
|
{
|
|
|
|
keyInput_W,
|
|
|
|
keyInput_A,
|
|
|
|
keyInput_S,
|
|
|
|
keyInput_D,
|
|
|
|
keyInput_none
|
|
|
|
};
|
2013-11-20 15:47:11 +01:00
|
|
|
|
2013-11-25 12:36:25 +01:00
|
|
|
class GAME_DLL_USAGE IGame
|
2013-11-20 15:47:11 +01:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
Game* gameModule;
|
|
|
|
public:
|
|
|
|
IGame();
|
|
|
|
~IGame();
|
|
|
|
|
2013-11-27 16:17:47 +01:00
|
|
|
|
2013-11-20 15:47:11 +01:00
|
|
|
void Init();
|
|
|
|
void StartGame();
|
2013-11-27 16:17:47 +01:00
|
|
|
/************************************************************************/
|
|
|
|
/* Get key input to update the player */
|
|
|
|
/************************************************************************/
|
2013-11-29 10:04:44 +01:00
|
|
|
void Update(keyInput keyPressed, float pitch, float yaw);
|
2013-11-21 12:05:39 +01:00
|
|
|
void Render();
|
2013-11-25 11:49:40 +01:00
|
|
|
Game* getGameModule();
|
2013-11-20 15:47:11 +01:00
|
|
|
private:
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|