summaryrefslogtreecommitdiffstats
path: root/src/View/TopView.h
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2008-04-15 16:15:02 +0200
committerneoraider <devnull@localhost>2008-04-15 16:15:02 +0200
commitbb09e9e703caceab0c5c5774509fb7167ead8d49 (patch)
tree059f0e06b885ae393c844db0cdc15669b68f8524 /src/View/TopView.h
parent7c929e6e1ce1f43d16d0d279af1e1261b5c566b7 (diff)
downloadzoomedit-bb09e9e703caceab0c5c5774509fb7167ead8d49.tar
zoomedit-bb09e9e703caceab0c5c5774509fb7167ead8d49.zip
zoomedit:
* Draw room edges
Diffstat (limited to 'src/View/TopView.h')
-rw-r--r--src/View/TopView.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/View/TopView.h b/src/View/TopView.h
index 844faa5..bbb9394 100644
--- a/src/View/TopView.h
+++ b/src/View/TopView.h
@@ -27,14 +27,26 @@ namespace ZoomEdit {
namespace Data {
class Level;
class Room;
+class Vertex;
}
namespace View {
class TopView : public View {
private:
+ class Edge {
+ public:
+ const Data::Vertex *v1, *v2;
+
+ Edge(const Data::Vertex *v10, const Data::Vertex *v20)
+ : v1(v10), v2(v20) {};
+ bool operator<(const Edge &e) const;
+ };
+
Data::Level *level;
+ bool edgeLess(const Edge &e1, const Edge &e2);
+
void drawGrid(Gui::RenderArea *renderArea);
void renderRoom(Data::Room *room);