Danbias/Code/GameLogic/Game.cpp

35 lines
358 B
C++
Raw Normal View History

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)
{
//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()
{
}
void Game::Update(keyInput keyPressed)
2013-11-20 15:47:11 +01:00
{
player->Update(keyPressed);
}
2013-11-21 12:05:39 +01:00
void Game::Render()
{
player->Render();
2013-11-21 12:05:39 +01:00
}