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

28 lines
466 B
C
Raw Normal View History

2011-08-15 16:11:24 +02:00
#ifndef TILE_H
#define TILE_H
2011-08-15 23:02:52 +02:00
#include "declarations.h"
#include <framework/luascript/luaobject.h>
2011-08-15 16:11:24 +02:00
2011-08-15 23:02:52 +02:00
class Tile : public LuaObject
2011-08-15 16:11:24 +02:00
{
public:
Tile();
void addThing(ThingPtr thing, uint8 stackpos);
void draw(int x, int y);
2011-08-15 21:15:49 +02:00
bool hasGround() { return (!!m_ground); }
2011-08-15 16:11:24 +02:00
int getStackSize();
private:
ThingPtr m_ground;
2011-08-16 02:30:31 +02:00
std::deque<ThingPtr> m_itemsBottom;
2011-08-15 21:15:49 +02:00
std::deque<ThingPtr> m_creatures;
std::deque<ThingPtr> m_itemsTop;
2011-08-15 16:11:24 +02:00
};
#endif