]> Dogcows Code - chaz/yoink/blobdiff - src/GameLayer.hh
simplified win32 installer build script
[chaz/yoink] / src / GameLayer.hh
index 4692611789f7cfbc1829be8b67cf13677d94a87d..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,20 +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::Timer               mThinkTimer;
+
        Mf::SoundStream mMusic;
        Mf::Sound               mPunchSound;
 
        Mf::Ray<2>              mRay;
-       Mf::Ray<3>              mRay3;
        Mf::Line<2>             mLine;
-       Mf::Plane               mPlane;
        Mf::Sphere<2>   mSphere;
+
+       Mf::Timer               mRayTimer;
+       void rayTimer();
 };
 
 
This page took 0.019586 seconds and 4 git commands to generate.