| 12345678910111213141516171819202122232425262728293031 |
- #ifndef INCLUDE_MAP_H
- #define INCLUDE_MAP_H
- #include "Camera.h"
- #include "Entity.h"
- namespace WalrusRPG
- {
- class Map
- {
- protected:
- // <Tiles> data;
- // <Tileset> tileset;
- unsigned int width;
- unsigned int height;
- unsigned *layer0;
- unsigned *layer1;
- // TODO?: add a boolean/getter to know if a second layer exist?
- public:
- Map(int width, int height, unsigned *layer0, unsigned *layer1);
- ~Map();
- void render(Camera &camera, unsigned dt) const;
- void update(unsigned dt);
- bool entity_collide(Entity &entity) const;
- unsigned get_width() const;
- unsigned get_height() const;
- };
- }
- #endif
|