Add health/xp/level interface
This commit is contained in:
@@ -5,28 +5,30 @@
|
||||
#include "Player.h"
|
||||
#include "Enemy.h"
|
||||
#include "LevelObject.h"
|
||||
#include "Interface.h"
|
||||
|
||||
class Entity;
|
||||
|
||||
class World
|
||||
{
|
||||
private:
|
||||
std::vector<std::pair<int, std::string>> objecttemplates;
|
||||
public:
|
||||
World(const std::string &fileName);
|
||||
~World();
|
||||
|
||||
std::vector<Entity*> entities;
|
||||
std::vector<Enemy*> enemies;
|
||||
std::vector<std::pair<int, std::pair<std::string, bool>>> objecttemplates;
|
||||
|
||||
Player* player;
|
||||
HeightMap* heightmap;
|
||||
Interface* interface;
|
||||
|
||||
std::vector<Entity*> entities;
|
||||
std::vector<Enemy*> enemies;
|
||||
public:
|
||||
World(const std::string &fileName);
|
||||
~World();
|
||||
|
||||
void draw();
|
||||
void update(float elapsedTime);
|
||||
bool isPlayerPositionValid();
|
||||
float getHeight(float x, float y);
|
||||
void addLevelObject(LevelObject* obj);
|
||||
std::string getObjectFromValue(int i);
|
||||
std::pair<std::string, bool> getObjectFromValue(int i);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user