29 lines
342 B
C++
29 lines
342 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
#include "HeightMap.h"
|
|
#include "Player.h"
|
|
#include "Enemy.h"
|
|
|
|
class Entity;
|
|
|
|
class World
|
|
{
|
|
public:
|
|
World();
|
|
~World();
|
|
|
|
|
|
Player& player;
|
|
std::vector<Entity*> entities;
|
|
|
|
std::vector<Enemy*> enemies;
|
|
|
|
HeightMap* heightmap;
|
|
|
|
void draw();
|
|
void update(float elapsedTime);
|
|
bool isPlayerPositionValid();
|
|
};
|
|
|