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.
32 lines
468 B
32 lines
468 B
13 years ago
|
#ifndef THING_H
|
||
|
#define THING_H
|
||
|
|
||
|
#include <global.h>
|
||
|
|
||
|
class Item;
|
||
|
|
||
|
class Thing
|
||
|
{
|
||
|
public:
|
||
|
Thing();
|
||
|
|
||
|
enum Type {
|
||
|
TYPE_NONE,
|
||
|
TYPE_ITEM,
|
||
|
TYPE_CREATURE
|
||
|
};
|
||
|
|
||
|
void setType(Type type) { m_type = type; }
|
||
|
Type getType() const { return m_type; }
|
||
|
|
||
|
virtual void draw(int, int) {}
|
||
|
|
||
|
virtual Item* getItem() { return NULL; }
|
||
|
virtual const Item *getItem() const { return NULL; }
|
||
|
|
||
|
protected:
|
||
|
Type m_type;
|
||
|
};
|
||
|
|
||
|
#endif // THING_H
|