X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FScene.hh;h=f9963e85dd0ea1e7567a5fd7e63f08daec01e47f;hp=24a790f26490a7cd2edc0da1fe798aaca19200ef;hb=2fdb5f5824826a6c54f5afde8c62eafd24c1a152;hpb=64bd443538f57ad1bdff6c6b35953e72141129b2 diff --git a/src/Scene.hh b/src/Scene.hh index 24a790f..f9963e8 100644 --- a/src/Scene.hh +++ b/src/Scene.hh @@ -36,6 +36,7 @@ #include #include #include +#include class Character; @@ -47,20 +48,24 @@ typedef boost::shared_ptr SceneP; class Scene : public Mf::Cullable, public Mf::Drawable, public Mf::Resource { class Impl; - boost::shared_ptr impl_; + boost::shared_ptr mImpl; public: - Scene(const std::string& name); + explicit Scene(const std::string& name); static SceneP alloc(const std::string& name) { return SceneP(new Scene(name)); } + Mf::Script::Status load(Mf::Script& script); + void draw(Mf::Scalar alpha) const; void drawIfVisible(Mf::Scalar alpha, const Mf::Frustum& frustum) const; + Mf::Scalar getZCoord(const Mf::Vector2& position) const; + bool checkForCollision(Character& character); static std::string getPath(const std::string& name);