summaryrefslogtreecommitdiffstats
path: root/LevelVertex.h
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2008-02-18 21:22:05 +0100
committerneoraider <devnull@localhost>2008-02-18 21:22:05 +0100
commit4c9b0f34f8ebd9cc5a00e49f39e7c9fddda08ec1 (patch)
tree75a46e2976c2d536957d7b50b5042cfcd6f94112 /LevelVertex.h
parent77b187b8eba7598fb6154da5d3d62ad0920eac15 (diff)
downloadzoomedit-4c9b0f34f8ebd9cc5a00e49f39e7c9fddda08ec1.tar
zoomedit-4c9b0f34f8ebd9cc5a00e49f39e7c9fddda08ec1.zip
zoomedit: Added some features like hover filters and connectable vertices.
Diffstat (limited to 'LevelVertex.h')
-rw-r--r--LevelVertex.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/LevelVertex.h b/LevelVertex.h
index 4834c06..a721293 100644
--- a/LevelVertex.h
+++ b/LevelVertex.h
@@ -34,6 +34,9 @@ class LevelVertex : public LevelObject {
provider->rotateVertex(id, m, a);
}
+ virtual bool canConnect() const {return provider->canConnectVertex(id);}
+ virtual void connect() {provider->connectVertex(id);}
+
const Vertex* operator->() const {return provider->getVertex(id);}
const Vertex& operator*() const {return *provider->getVertex(id);}
};