tibia-client/src/tile.h

29 lines
427 B
C
Raw Normal View History

2011-08-11 07:52:30 +02:00
#ifndef TILE_H
#define TILE_H
#include <global.h>
#include "thing.h"
2011-08-14 02:30:27 +02:00
class Tile;
typedef std::shared_ptr<Tile> TilePtr;
2011-08-11 07:52:30 +02:00
class Tile
{
public:
2011-08-12 02:06:01 +02:00
Tile();
2011-08-11 07:52:30 +02:00
void addThing(Thing *thing);
2011-08-12 02:06:01 +02:00
void draw(int x, int y, int z);
2011-08-12 06:34:21 +02:00
bool hasGround();
int getStackSize();
2011-08-11 07:52:30 +02:00
private:
2011-08-12 02:06:01 +02:00
Item *m_ground;
2011-08-11 07:52:30 +02:00
std::list<Thing*> m_itemsBot;
std::list<Thing*> m_creatures;
std::list<Thing*> m_itemsTop;
};
#endif // TILE_H