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

26 lines
434 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 draw(int x, int y);
void addThing(ThingPtr thing, uint8 stackpos = 0);
void removeThing(ThingPtr thing);
2011-08-15 16:11:24 +02:00
private:
2011-08-16 02:30:31 +02:00
std::unordered_map<Position, TilePtr, PositionHasher> m_tiles;
std::list<EffectPtr> m_effects;
2011-08-15 16:11:24 +02:00
FrameBufferPtr m_framebuffer;
};
2011-08-15 23:02:52 +02:00
extern Map g_map;
2011-08-15 16:11:24 +02:00
#endif