summaryrefslogtreecommitdiffstats
path: root/LevelObject.h
diff options
context:
space:
mode:
Diffstat (limited to 'LevelObject.h')
-rw-r--r--LevelObject.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/LevelObject.h b/LevelObject.h
index d7dbf4f..c8d4d47 100644
--- a/LevelObject.h
+++ b/LevelObject.h
@@ -1,21 +1,16 @@
#ifndef LEVELOBJECT_H_
#define LEVELOBJECT_H_
+#include "Object.h"
#include "Vertex.h"
-#include <cstring>
-class LevelObject {
+class LevelObject : public Object {
public:
virtual ~LevelObject() {}
- virtual const char* getType() const = 0;
virtual bool hit(const Vertex &v) const = 0;
virtual int getPriority() const = 0;
-
- bool isOfType(const char *type) const {
- return (std::strcmp(getType(), type) == 0);
- }
};
#endif /*LEVELOBJECT_H_*/