This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
neofx-zoomedit/LevelObject.h

36 lines
886 B
C
Raw Normal View History

#ifndef LEVELOBJECT_H_
#define LEVELOBJECT_H_
2007-12-14 22:03:00 +00:00
#include "Object.h"
#include "Vertex.h"
2008-02-13 21:06:01 +00:00
#include <list>
2007-12-14 22:03:00 +00:00
class LevelObject : public Object {
2008-02-13 21:06:01 +00:00
private:
LevelObject *parent;
public:
2008-02-15 22:44:03 +00:00
LevelObject(LevelObject *p = NULL) : parent(p) {}
virtual ~LevelObject() {}
2008-02-13 21:06:01 +00:00
LevelObject* getParent() const {
return parent;
}
virtual std::vector<SharedPtr<LevelObject> > getChildren() {
return std::vector<SharedPtr<LevelObject> >();
}
2008-02-15 22:44:03 +00:00
virtual bool hit(const Vertex &v) const {return false;}
virtual bool hit(const Vertex &v, float scale) const {return hit(v);};
2008-02-13 21:06:01 +00:00
virtual int getPriority() const {return 0;}
2008-01-13 16:41:01 +00:00
virtual bool canMove() const {return false;}
2008-01-13 16:41:01 +00:00
virtual void move(float x, float y) {}
virtual bool canRotate() const {return false;}
virtual void rotate(Vertex m, float a) {}
};
#endif /*LEVELOBJECT_H_*/