summaryrefslogtreecommitdiffstats
path: root/Room.cpp
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2008-02-19 23:19:02 +0100
committerneoraider <devnull@localhost>2008-02-19 23:19:02 +0100
commitf457ec5027eec37d3734190601399da0af68d12e (patch)
treeb8ee2c2d39fea69b05c6e4824dbd8fab2d87f6b9 /Room.cpp
parent2687501f215ec7ffd939801f171d25ea30b02c55 (diff)
downloadzoomedit-f457ec5027eec37d3734190601399da0af68d12e.tar
zoomedit-f457ec5027eec37d3734190601399da0af68d12e.zip
zoomedit: Rooms can now be connected to portals.
Diffstat (limited to 'Room.cpp')
-rw-r--r--Room.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/Room.cpp b/Room.cpp
index 72a9d22..e364293 100644
--- a/Room.cpp
+++ b/Room.cpp
@@ -20,30 +20,6 @@ const Room& Room::operator=(const Room &room) {
return room;
}
-void Room::addVertex(Vertex v) {
- vertices.push_back(SharedPtr<RoomVertex>(new RoomVertexDirect(v)));
-
- if(vertices.size() < 2)
- return;
-
- if(vertices.size() == 2) {
- LevelVertex v1(this, 0, this), v2(this, 1, this);
-
- edges.push_back(Edge(v1, v2));
- edges.push_back(Edge(v2, v1));
-
- return;
- }
-
- edges.pop_back();
- LevelVertex v1(edges.back().getVertex2());
- LevelVertex v2(this, vertices.size()-1, this);
- LevelVertex v3(edges.front().getVertex1());
-
- edges.push_back(Edge(v1, v2));
- edges.push_back(Edge(v2, v3));
-}
-
std::vector<SharedPtr<LevelObject> > Room::getChildren() {
std::vector<SharedPtr<LevelObject> > children;