summaryrefslogtreecommitdiffstats
path: root/EdgeProvider.h
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2008-02-15 12:01:04 +0100
committerneoraider <devnull@localhost>2008-02-15 12:01:04 +0100
commit80b4f14530426d21c7ea26b7976a728f5b36c294 (patch)
treea3d54b26f072f1204c7a1146bd1dc96a8a3850d3 /EdgeProvider.h
parentc4aadd98230f3b9ab50398b715164ff874ea8a61 (diff)
downloadzoomedit-80b4f14530426d21c7ea26b7976a728f5b36c294.tar
zoomedit-80b4f14530426d21c7ea26b7976a728f5b36c294.zip
Added edges to rooms.
Diffstat (limited to 'EdgeProvider.h')
-rw-r--r--EdgeProvider.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/EdgeProvider.h b/EdgeProvider.h
new file mode 100644
index 0000000..3a08829
--- /dev/null
+++ b/EdgeProvider.h
@@ -0,0 +1,18 @@
+#ifndef EDGEPROVIDER_H_
+#define EDGEPROVIDER_H_
+
+#include "Edge.h"
+
+
+class EdgeProvider {
+ public:
+ virtual ~EdgeProvider() {}
+
+ virtual const Edge* getEdge(size_t id) const = 0;
+ virtual size_t getEdgeCount() const = 0;
+
+ virtual void moveEdge(size_t id, float x, float y) {}
+ virtual void rotateEdge(size_t id, float a) {}
+};
+
+#endif /*EDGEPROVIDER_H_*/