2011-08-11 07:52:30 +02:00
|
|
|
#ifndef TILE_H
|
|
|
|
#define TILE_H
|
|
|
|
|
|
|
|
#include <global.h>
|
|
|
|
#include "thing.h"
|
|
|
|
|
|
|
|
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-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
|