| 1234567891011121314151617181920212223242526272829 |
- #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;
- 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;
- };
- }
- #endif
|