X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=laserbrain_demo;a=blobdiff_plain;f=src%2Fmetascene.h;h=c363901346afac6a92680591e4a522b4326cc34e;hp=8d0f5c250d0547b71228484d85dc216f850682f5;hb=fb11663a3654acd0132e71e5652e35b0ea72d544;hpb=26c1717925471539b9745cce6275b218a47147cd diff --git a/src/metascene.h b/src/metascene.h index 8d0f5c2..c363901 100644 --- a/src/metascene.h +++ b/src/metascene.h @@ -4,6 +4,7 @@ #include #include "scene.h" #include "mesh.h" +#include "audio/ovstream.h" #include "datamap.h" class MetaScene { @@ -18,6 +19,7 @@ public: std::map scndata; + AudioStream *music; MetaScene(); ~MetaScene(); @@ -27,6 +29,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_