diff options
author | neoraider <devnull@localhost> | 2008-02-19 23:19:02 +0100 |
---|---|---|
committer | neoraider <devnull@localhost> | 2008-02-19 23:19:02 +0100 |
commit | f457ec5027eec37d3734190601399da0af68d12e (patch) | |
tree | b8ee2c2d39fea69b05c6e4824dbd8fab2d87f6b9 /Room.cpp | |
parent | 2687501f215ec7ffd939801f171d25ea30b02c55 (diff) | |
download | zoomedit-f457ec5027eec37d3734190601399da0af68d12e.tar zoomedit-f457ec5027eec37d3734190601399da0af68d12e.zip |
zoomedit: Rooms can now be connected to portals.
Diffstat (limited to 'Room.cpp')
-rw-r--r-- | Room.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
@@ -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; |