Spawn objects from file
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user