Danbias/Code/GameLogic/IGame.cpp

43 lines
603 B
C++
Raw Normal View History

2013-11-20 15:47:11 +01:00
#include "IGame.h"
#include "Game.h"
#include <windows.h>
BOOL WINAPI DllMain(
_In_ HINSTANCE hinstDLL,
_In_ DWORD fdwReason,
_In_ LPVOID lpvReserved
)
{
return TRUE;
}
using namespace GameLogic;
2013-11-29 09:05:01 +01:00
2013-11-20 15:47:11 +01:00
IGame::IGame()
{
gameModule = new Game();
}
IGame::~IGame()
{
delete gameModule;
}
void IGame::Init()
{
gameModule->Init();
}
void IGame::StartGame()
{
gameModule->StartGame();
}
2013-11-29 10:04:44 +01:00
void IGame::Update(keyInput keyPressed, float pitch, float yaw)
2013-11-20 15:47:11 +01:00
{
2013-11-29 10:04:44 +01:00
gameModule->Update(keyPressed, pitch, yaw);
2013-11-21 12:05:39 +01:00
}
void IGame::Render()
{
gameModule->Render();
2013-11-25 11:49:40 +01:00
}
Game* IGame::getGameModule()
{
return gameModule;
2013-11-20 15:47:11 +01:00
}