World.h 405 B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. #include <vector>
  3. #include "HeightMap.h"
  4. #include "Player.h"
  5. #include "Enemy.h"
  6. class Entity;
  7. class World
  8. {
  9. public:
  10. World(const std::string &fileName);
  11. ~World();
  12. std::vector<Entity*> entities;
  13. std::vector<Enemy*> enemies;
  14. Player* player;
  15. //HeightMap* heightmap;
  16. void draw();
  17. void update(float elapsedTime);
  18. bool isPlayerPositionValid();
  19. float getHeight(float x, float y);
  20. };