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.

28 lines
453 B

#ifndef ITEM_H
#define ITEM_H
#include <global.h>
#include "thing.h"
class Item;
typedef std::shared_ptr<Item> ItemPtr;
class Item : public Thing
{
public:
Item();
virtual ThingAttributes *getAttributes();
void draw(int x, int y);
void setCount(uint8 count) { m_count = count; }
virtual Item* getItem() { return this; }
virtual const Item* getItem() const { return this; }
private:
uint8 m_count;
};
#endif // ITEM_H