summaryrefslogtreecommitdiffstats
path: root/Level.h
diff options
context:
space:
mode:
Diffstat (limited to 'Level.h')
-rw-r--r--Level.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/Level.h b/Level.h
deleted file mode 100644
index 792a8fc..0000000
--- a/Level.h
+++ /dev/null
@@ -1,29 +0,0 @@
-#ifndef LEVEL_H_
-#define LEVEL_H_
-
-
-#include "LevelObject.h"
-#include "SharedPtr.h"
-#include "PlayerStart.h"
-#include "Portal.h"
-#include "LevelVertex.h"
-#include <vector>
-
-class Level : public std::vector<SharedPtr<LevelObject> > {
- public:
- Level() {
- addWithChildren(SharedPtr<LevelObject>(new PlayerStart()));
- addWithChildren(SharedPtr<LevelObject>(new Portal(2, 2, 0.4f)));
- }
-
- void addWithChildren(SharedPtr<LevelObject> object) {
- push_back(object);
-
- std::vector<SharedPtr<LevelObject> > children = object->getChildren();
-
- for(std::vector<SharedPtr<LevelObject> >::iterator child = children.begin(); child != children.end(); child++)
- addWithChildren(*child);
- }
-};
-
-#endif /*LEVEL_H_*/