tibia-client/src/otclient/core/map.h

25 lines
395 B
C
Raw Normal View History

2011-08-15 16:11:24 +02:00
#ifndef MAP_H
#define MAP_H
#include "tile.h"
#include "effect.h"
#include <framework/graphics/declarations.h>
class Map
{
public:
void addThing(ThingPtr thing, uint8 stackpos = 0);
void draw(int x, int y);
private:
2011-08-16 02:30:31 +02:00
std::unordered_map<Position, TilePtr, PositionHasher> m_tiles;
2011-08-15 16:11:24 +02:00
std::list<ThingPtr> m_effects;
FrameBufferPtr m_framebuffer;
};
2011-08-15 23:02:52 +02:00
extern Map g_map;
2011-08-15 16:11:24 +02:00
#endif