2011-08-15 16:11:24 +02:00
|
|
|
#ifndef ITEM_H
|
|
|
|
#define ITEM_H
|
|
|
|
|
|
|
|
#include <framework/global.h>
|
|
|
|
#include "thing.h"
|
|
|
|
|
|
|
|
class Item : public Thing
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Item();
|
|
|
|
|
|
|
|
void draw(int x, int y);
|
|
|
|
|
2011-08-16 02:30:31 +02:00
|
|
|
void setCount(int count) { m_count = count; }
|
2011-08-15 16:11:24 +02:00
|
|
|
|
2011-08-15 23:02:52 +02:00
|
|
|
int getCount() { return m_count; }
|
|
|
|
const ThingAttributes& getAttributes();
|
|
|
|
|
|
|
|
ItemPtr asItem() { return std::static_pointer_cast<Item>(shared_from_this()); }
|
2011-08-15 16:11:24 +02:00
|
|
|
|
|
|
|
private:
|
2011-08-16 02:30:31 +02:00
|
|
|
int m_count;
|
2011-08-15 16:11:24 +02:00
|
|
|
};
|
|
|
|
|
2011-08-15 23:02:52 +02:00
|
|
|
#endif
|