diff options
author | neoraider <devnull@localhost> | 2008-04-06 15:29:03 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2008-04-06 15:29:03 +0200 |
commit | 356efaf89afdad141b313767e1a2b89de3c08d0a (patch) | |
tree | 37edb2a0fc0ea15f4f60e45ed411cbea7b4c12c5 /Level.h | |
parent | 258eb984bafe0f667d1e76de61c8afaa23f39ef4 (diff) | |
download | zoomedit-356efaf89afdad141b313767e1a2b89de3c08d0a.tar zoomedit-356efaf89afdad141b313767e1a2b89de3c08d0a.zip |
zoomedit: Recreated ZoomEdit based on Glademm.
Diffstat (limited to 'Level.h')
-rw-r--r-- | Level.h | 29 |
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_*/ |