#include <iostream>
#include <string>
+#include <vector>
#include <boost/shared_ptr.hpp>
#include <Moof/Interpolator.hh>
#include <Moof/Layer.hh>
#include <Moof/Math.hh>
-#include <Moof/Scene.hh>
+#include <Moof/Script.hh>
#include <Moof/Sound.hh>
#include "Character.hh"
+#include "Heroine.hh"
#include "Hud.hh"
+#include "Scene.hh"
class GameLayer;
}
void pushed(Mf::Engine& engine);
+
void update(Mf::Scalar t, Mf::Scalar dt);
void draw(Mf::Scalar alpha) const;
bool handleEvent(const Mf::Event& event);
private:
- Mf::Sound music;
+ void loadSceneLoader();
+ void advanceScene();
+
+ Mf::Scalar getZCoord(const Mf::Vector2& position) const;
+
+ void setProjection();
+ void setProjection(Mf::Scalar width, Mf::Scalar height);
+
+
+ // the script object must be mutable because some script functions must be
+ // called during draw
+ mutable Mf::Script mScript;
+ std::vector<std::string> mSceneList;
+
+ Mf::Sound mMusic;
+ Mf::Sound mPunchSound;
- CharacterP heroine;
- Mf::Sound punchSound;
+ HeroineP mHeroine;
+ SceneP mScene;
- Mf::PolynomialInterpolator<5> interp;
- Mf::Lerp fadeIn;
+ Mf::PolynomialInterpolator<5> mInterp;
- Mf::Camera camera;
- Mf::OctreeP octree;
+ Mf::Camera mCamera;
- HudP hud;
+ HudP mHud;
};