2011-08-11 07:52:30 +02:00
|
|
|
#ifndef MAP_H
|
|
|
|
#define MAP_H
|
|
|
|
|
|
|
|
#include "position.h"
|
|
|
|
#include "tile.h"
|
2011-08-14 04:09:11 +02:00
|
|
|
#include <graphics/graphicsdeclarations.h>
|
|
|
|
#include <unordered_map>
|
2011-08-11 07:52:30 +02:00
|
|
|
|
|
|
|
class Map
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void addThing(Thing *thing, const Position& pos);
|
|
|
|
|
2011-08-12 02:06:01 +02:00
|
|
|
void draw(int x, int y);
|
2011-08-11 07:52:30 +02:00
|
|
|
|
|
|
|
private:
|
2011-08-14 02:30:27 +02:00
|
|
|
std::unordered_map<Position, TilePtr, PositionHash> m_tiles;
|
2011-08-12 03:38:54 +02:00
|
|
|
|
|
|
|
FrameBufferPtr m_framebuffer;
|
2011-08-11 07:52:30 +02:00
|
|
|
};
|
|
|
|
|
2011-08-14 04:09:11 +02:00
|
|
|
#endif
|