tibia-client/src/map.h

23 lines
412 B
C
Raw Normal View History

2011-08-11 07:52:30 +02:00
#ifndef MAP_H
#define MAP_H
#include "position.h"
#include "tile.h"
2011-08-12 03:38:54 +02:00
#include <graphics/framebuffer.h>
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-12 06:34:21 +02:00
// Visible tiles are 15x11, but we have a +7 value cause itens visible at other floors. We have 15 floors.
Tile m_map[25][21][15];
2011-08-12 03:38:54 +02:00
FrameBufferPtr m_framebuffer;
2011-08-11 07:52:30 +02:00
};
#endif // MAP_H