Map.h 499 B

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