Spawn objects from file

This commit is contained in:
2016-05-27 10:56:24 +02:00
parent 1c59a3bc6f
commit d83cc6403c
8 changed files with 64 additions and 6 deletions
+5
View File
@@ -4,11 +4,14 @@
#include "HeightMap.h"
#include "Player.h"
#include "Enemy.h"
#include "LevelObject.h"
class Entity;
class World
{
private:
std::vector<std::pair<int, std::string>> objecttemplates;
public:
World(const std::string &fileName);
~World();
@@ -23,5 +26,7 @@ public:
void update(float elapsedTime);
bool isPlayerPositionValid();
float getHeight(float x, float y);
void addLevelObject(LevelObject* obj);
std::string getObjectFromValue(int i);
};