You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
820 B

#ifndef TILE_H
#define TILE_H
#include "declarations.h"
#include <framework/luascript/luaobject.h>
class Tile : public LuaObject
{
public:
Tile();
void draw(int x, int y, int step);
void addThing(ThingPtr thing, int stackpos);
ThingPtr getThing(unsigned int stackpos);
void removeThing(unsigned int stackpos);
void removeThingByPtr(ThingPtr thing);
void clean();
bool hasGround() { return (!!m_ground); }
int getStackSize(int stop);
std::deque<ThingPtr> getCreatures() { return m_creatures; }
int getDrawNextOffset() { return m_drawNextOffset; }
private:
ThingPtr m_ground;
std::deque<ThingPtr> m_itemsBottom;
std::deque<ThingPtr> m_creatures;
std::deque<ThingPtr> m_itemsTop;
std::deque<ThingPtr> m_effects;
int m_drawNextOffset;
};
#endif