From c4aadd98230f3b9ab50398b715164ff874ea8a61 Mon Sep 17 00:00:00 2001 From: neoraider Date: Wed, 13 Feb 2008 21:06:01 +0000 Subject: zoomedit: Vertices are selectable now. --- Level.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'Level.h') diff --git a/Level.h b/Level.h index ede34db..792a8fc 100644 --- a/Level.h +++ b/Level.h @@ -6,13 +6,23 @@ #include "SharedPtr.h" #include "PlayerStart.h" #include "Portal.h" +#include "LevelVertex.h" #include class Level : public std::vector > { public: Level() { - push_back(SharedPtr(new PlayerStart())); - push_back(SharedPtr(new Portal(2, 2, 0.4f))); + addWithChildren(SharedPtr(new PlayerStart())); + addWithChildren(SharedPtr(new Portal(2, 2, 0.4f))); + } + + void addWithChildren(SharedPtr object) { + push_back(object); + + std::vector > children = object->getChildren(); + + for(std::vector >::iterator child = children.begin(); child != children.end(); child++) + addWithChildren(*child); } }; -- cgit v1.2.3