added GameMode class to level

This commit is contained in:
Erik Persson 2013-11-26 08:56:31 +01:00
parent e2c90a467b
commit 220f1da8b6
3 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,15 @@
#include "GameMode.h"
using namespace GameLogic;
GameMode::GameMode(void)
{
}
GameMode::~GameMode(void)
{
}

17
Code/GameLogic/GameMode.h Normal file
View File

@ -0,0 +1,17 @@
#ifndef GAMEMODE_H
#define GAMEMODE_H
namespace GameLogic
{
class GameMode
{
public:
GameMode(void);
~GameMode(void);
private:
//variabels that control what game rules the level runs on
};
}
#endif

View File

@ -1,6 +1,10 @@
#ifndef LEVEL_H #ifndef LEVEL_H
#define LEVEL_H #define LEVEL_H
#include "StaticObject.h"
#include "DynamicObject.h"
#include "GameMode.h"
namespace GameLogic namespace GameLogic
{ {
@ -12,6 +16,15 @@ namespace GameLogic
~Level(void); ~Level(void);
private: private:
StaticObject** staticObjects;
int nrOfStaticObjects;
DynamicObject** dynamicObjects;
int nrOfDynamicObjects;
GameMode* gameMode;
}; };