From ea0f3f05b40dc823bc8cb7157cade320ecfe1a49 Mon Sep 17 00:00:00 2001 From: Erik Persson Date: Tue, 19 Nov 2013 11:07:14 +0100 Subject: [PATCH] added level and player --- Code/GameLogic/Game.cpp | 5 +++++ Code/GameLogic/Game.h | 6 ++++++ Code/GameLogic/Level.cpp | 12 ++++++++++++ Code/GameLogic/Level.h | 19 +++++++++++++++++++ Code/GameLogic/Player.cpp | 12 ++++++++++++ Code/GameLogic/Player.h | 19 +++++++++++++++++++ 6 files changed, 73 insertions(+) create mode 100644 Code/GameLogic/Level.cpp create mode 100644 Code/GameLogic/Level.h create mode 100644 Code/GameLogic/Player.cpp create mode 100644 Code/GameLogic/Player.h diff --git a/Code/GameLogic/Game.cpp b/Code/GameLogic/Game.cpp index 7f79c9af..805e25b9 100644 --- a/Code/GameLogic/Game.cpp +++ b/Code/GameLogic/Game.cpp @@ -10,3 +10,8 @@ Game::Game(void) Game::~Game(void) { } + +void Game::Init() +{ + +} diff --git a/Code/GameLogic/Game.h b/Code/GameLogic/Game.h index 42d0c176..174a3a65 100644 --- a/Code/GameLogic/Game.h +++ b/Code/GameLogic/Game.h @@ -1,6 +1,8 @@ #ifndef GAME_H #define GAME_H +#include "Level.h" +#include "Player.h" namespace GameLogic { @@ -11,7 +13,11 @@ namespace GameLogic Game(void); ~Game(void); + void Init(); private: + Level *level; + Player *player; + }; } diff --git a/Code/GameLogic/Level.cpp b/Code/GameLogic/Level.cpp new file mode 100644 index 00000000..32fbe2d5 --- /dev/null +++ b/Code/GameLogic/Level.cpp @@ -0,0 +1,12 @@ +#include "Level.h" + +using namespace GameLogic; + +Level::Level(void) +{ +} + + +Level::~Level(void) +{ +} diff --git a/Code/GameLogic/Level.h b/Code/GameLogic/Level.h new file mode 100644 index 00000000..76414cff --- /dev/null +++ b/Code/GameLogic/Level.h @@ -0,0 +1,19 @@ +#ifndef LEVEL_H +#define LEVEL_H + +namespace GameLogic +{ + + class Level + { + + public: + Level(void); + ~Level(void); + + private: + + }; + +} +#endif \ No newline at end of file diff --git a/Code/GameLogic/Player.cpp b/Code/GameLogic/Player.cpp new file mode 100644 index 00000000..43494720 --- /dev/null +++ b/Code/GameLogic/Player.cpp @@ -0,0 +1,12 @@ +#include "Player.h" + +using namespace GameLogic; + +Player::Player(void) +{ +} + + +Player::~Player(void) +{ +} diff --git a/Code/GameLogic/Player.h b/Code/GameLogic/Player.h new file mode 100644 index 00000000..776973c6 --- /dev/null +++ b/Code/GameLogic/Player.h @@ -0,0 +1,19 @@ +#ifndef PLAYER_H +#define PLAYER_H + +namespace GameLogic +{ + + class Player + { + + public: + Player(void); + ~Player(void); + + private: + + }; + +} +#endif \ No newline at end of file