X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fmetascene.h;h=9ac90924ebb14395a89f5259600a05b41e2612af;hb=3674b7a5b534224cc22551673a9d0ae9b83206c4;hp=00960cae54f5d9a3d877726327dbc162db8d6ddb;hpb=b30241a8a51be904b22459a1d0cc3322e0a505d9;p=laserbrain_demo diff --git a/src/metascene.h b/src/metascene.h index 00960ca..9ac9092 100644 --- a/src/metascene.h +++ b/src/metascene.h @@ -8,8 +8,6 @@ class MetaScene { public: - SceneSet *sceneman; - TextureSet *texman; DataMap datamap; std::vector scenes; @@ -21,7 +19,7 @@ public: std::map scndata; - MetaScene(SceneSet *sman, TextureSet *tman); + MetaScene(); ~MetaScene(); bool load(const char *fname); @@ -29,6 +27,15 @@ public: void update(float dt); void draw() const; + + /* helper functions which end up calling the corresponding Scene functions + * for every scene + */ + SceneNode *find_node(const char *name) const; + SceneNode *match_node(const char *qstr) const; + std::list match_nodes(const char *qstr) const; + + Scene *extract_nodes(const char *qstr); }; #endif // METASCENE_H_