]> Dogcows Code - chaz/yoink/blobdiff - src/YoinkApp.hh
new lua scripting for scene loading
[chaz/yoink] / src / YoinkApp.hh
index 475dca35cd6d6259bacad22e4d8eb798976e5df9..950d31983002443dd83abe9c3c70d4a57321f1b8 100644 (file)
 #include <iostream>
 #include <string>
 
-#include "dispatcher.hh"
-#include "math.hh"
-#include "interpolator.hh"
-#include "engine.hh"
+#include <Moof/Camera.hh>
+#include <Moof/Dispatcher.hh>
+#include <Moof/Engine.hh>
+#include <Moof/Interpolator.hh>
+#include <Moof/Math.hh>
+#include <Moof/Scene.hh>
+#include <Moof/Sound.hh>
 
 #include "Character.hh"
+#include "Hud.hh"
 
-#include "TilemapFont.hh"
 
-#include "scene.hh"
-
-
-class YoinkApp : public dc::engine
+class YoinkApp : public Mf::Engine
 {
 public:
        YoinkApp(int argc, char* argv[]);
        ~YoinkApp();
 
 private:
-       void update(dc::scalar t, dc::scalar dt);
-       void draw(dc::scalar alpha);
-       void handleEvent(const dc::event& e);
+       void update(Mf::Scalar t, Mf::Scalar dt);
+       void draw(Mf::Scalar alpha);
+       void handleEvent(const Mf::Event& event);
 
        /**
         * Set OpenGL to a state we can know and depend on.
         */
        void setupGL();
-       void contextRecreated(const dc::notification& note);
+       void contextRecreated(const Mf::Notification* note);
 
-       //dc::animation* heroAnimation;
-       //dc::tilemap* heroineTexture;
-       Character* someChar;
-       //dc::binomial_interpolator<dc::vector2,2> interp;
-       dc::cerpv2 interp;
-       dc::lerps fadeIn;
+       Mf::Sound music;
 
-       dc::scene* testScene;
+       CharacterP heroine;
+       Mf::Sound punchSound;
 
-       TilemapFont *font;
+       Mf::PolynomialInterpolator<5> interp;
+       Mf::Lerp fadeIn;
 
-       dc::scalar x, y, z;
+       Mf::Camera camera;
+       Mf::OctreeP octree;
 
-       dc::scalar state;
-       dc::scalar prevstate;
+       Hud hud;
 };
 
 
This page took 0.019156 seconds and 4 git commands to generate.