summaryrefslogtreecommitdiffstats
path: root/Room.cpp
diff options
context:
space:
mode:
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;