2013-11-19 09:52:36 +01:00
|
|
|
#include "Game.h"
|
|
|
|
using namespace GameLogic;
|
|
|
|
|
|
|
|
Game::Game(void)
|
|
|
|
{
|
2013-11-21 12:05:39 +01:00
|
|
|
|
2013-11-19 09:52:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Game::~Game(void)
|
|
|
|
{
|
2013-11-27 16:17:47 +01:00
|
|
|
//SAFE_DELETE(player);
|
|
|
|
if(player)
|
|
|
|
{
|
|
|
|
delete player;
|
|
|
|
player = NULL;
|
|
|
|
}
|
2013-11-19 09:52:36 +01:00
|
|
|
}
|
2013-11-19 11:07:14 +01:00
|
|
|
|
|
|
|
void Game::Init()
|
|
|
|
{
|
2013-11-21 12:05:39 +01:00
|
|
|
player = new Player();
|
2013-11-19 11:07:14 +01:00
|
|
|
}
|
2013-11-20 15:47:11 +01:00
|
|
|
void Game::StartGame()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
2013-11-27 16:17:47 +01:00
|
|
|
void Game::Update(keyInput keyPressed)
|
2013-11-20 15:47:11 +01:00
|
|
|
{
|
2013-11-27 16:17:47 +01:00
|
|
|
player->Update(keyPressed);
|
2013-11-20 15:47:31 +01:00
|
|
|
}
|
2013-11-21 12:05:39 +01:00
|
|
|
void Game::Render()
|
|
|
|
{
|
2013-11-28 11:23:11 +01:00
|
|
|
player->Render();
|
2013-11-21 12:05:39 +01:00
|
|
|
}
|