World.h 367 B

1234567891011121314151617181920212223242526
  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. };