Map.h 480 B

12345678910111213141516171819202122232425262728
  1. #ifndef INCLUDE_MAP_H
  2. #define INCLUDE_MAP_H
  3. #include "Camera.h"
  4. #include "Entity.h"
  5. namespace WalrusRPG {
  6. class Map
  7. {
  8. protected:
  9. // <Tiles> data;
  10. // <Tileset> tileset;
  11. unsigned int width;
  12. unsigned int height;
  13. unsigned *layer0;
  14. unsigned *layer1;
  15. public:
  16. Map(int width, int height, unsigned *layer0, unsigned *layer1);
  17. ~Map();
  18. void render(Camera &camera, float dt) const;
  19. void update(float dt);
  20. bool entity_collide(Entity &entity) const;
  21. };
  22. }
  23. #endif