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.

26 lines
434 B

#ifndef MAP_H
#define MAP_H
#include "tile.h"
#include "effect.h"
#include <framework/graphics/declarations.h>
class Map
{
public:
void draw(int x, int y);
void addThing(ThingPtr thing, uint8 stackpos = 0);
void removeThing(ThingPtr thing);
private:
std::unordered_map<Position, TilePtr, PositionHasher> m_tiles;
std::list<EffectPtr> m_effects;
FrameBufferPtr m_framebuffer;
};
extern Map g_map;
#endif