]> Dogcows Code - chaz/yoink/blobdiff - src/GameLayer.hh
simplified win32 installer build script
[chaz/yoink] / src / GameLayer.hh
index f966c7092ca3703affa4dee90dc60172815a75dd..73b6a23e6a141ec2315cb9f5f2a5f34e91e90dc8 100644 (file)
@@ -51,6 +51,7 @@
 #include <Moof/Plane.hh>
 #include <Moof/Ray.hh>
 #include <Moof/Sphere.hh>
+#include <Moof/Timer.hh>
 
 #include "Character.hh"
 #include "Heroine.hh"
@@ -79,9 +80,7 @@ public:
 
        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;
@@ -97,19 +96,23 @@ private:
        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();
 };
 
 
This page took 0.019418 seconds and 4 git commands to generate.