You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
338 B

#ifndef MAP_H
#define MAP_H
#include "position.h"
#include "tile.h"
#include <graphics/framebuffer.h>
class Map
{
public:
void addThing(Thing *thing, const Position& pos);
void draw(int x, int y);
private:
std::unordered_map<Position, TilePtr, PositionHash> m_tiles;
FrameBufferPtr m_framebuffer;
};
#endif // MAP_H