#include <Moof/Plane.hh>
#include <Moof/Ray.hh>
#include <Moof/Sphere.hh>
+#include <Moof/Timer.hh>
#include "Character.hh"
#include "Heroine.hh"
struct State
{
- // the script object must be mutable because some script functions must be
- // called during draw
- mutable Mf::Script script;
+ Mf::Script script;
std::vector<std::string> sceneList;
HeroineP heroine;
void loadSceneLoader();
void advanceScene();
- Mf::Scalar getZCoord(const Mf::Vector2& position) const;
+ void thinkTimer();
void setProjection();
void setProjection(Mf::Scalar width, Mf::Scalar height);
- State mState;
- Mf::Sound mMusic;
- Mf::Sound mPunchSound;
+ State mState;
+ Mf::Timer mThinkTimer;
- Mf::Ray<2> mRay;
- Mf::Line<2> mLine;
- Mf::Plane mPlane;
+ Mf::SoundStream mMusic;
+ Mf::Sound mPunchSound;
+
+ Mf::Ray<2> mRay;
+ Mf::Line<2> mLine;
Mf::Sphere<2> mSphere;
+
+ Mf::Timer mRayTimer;
+ void rayTimer();
};