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.

30 lines
469 B

#ifndef TILE_H
#define TILE_H
#include <global.h>
#include "thing.h"
#include "position.h"
class Tile;
typedef std::shared_ptr<Tile> TilePtr;
class Tile
{
public:
Tile();
void addThing(ThingPtr thing, uint8 stackpos);
void draw(int x, int y);
bool hasGround();
int getStackSize();
private:
ThingPtr m_ground;
std::list<ThingPtr> m_itemsBot;
std::list<ThingPtr> m_creatures;
std::list<ThingPtr> m_itemsTop;
};
#endif // TILE_H