]> Dogcows Code - chaz/yoink/blobdiff - src/GameLayer.hh
destroyed global classes; view hierarchy instead
[chaz/yoink] / src / GameLayer.hh
index c537af6391569230118af2ee7ff72f086b5f3d1f..145cf76cba75a0d58d6c3c77ecd8369fefc651e4 100644 (file)
@@ -23,7 +23,6 @@
 
 #include <boost/shared_ptr.hpp>
 
-#include <Moof/Layer.hh>
 #include <Moof/Math.hh>
 #include <Moof/Sound.hh>
 
@@ -32,6 +31,7 @@
 #include <Moof/Ray.hh>
 #include <Moof/Sphere.hh>
 #include <Moof/Timer.hh>
+#include <Moof/View.hh>
 
 #include "GameState.hh"
 #include "Hud.hh"
 class GameLayer;
 typedef boost::shared_ptr<GameLayer> GameLayerP;
 
-class GameLayer : public Mf::Layer
+class GameLayer : public Mf::View
 {
 public:
 
-       GameLayer();
-
        static GameLayerP alloc()
        {
                return GameLayerP(new GameLayer);
        }
+       GameLayer();
 
-       void addedToCore();
+       void didAddToView();
 
        void update(Mf::Scalar t, Mf::Scalar dt);
        void draw(Mf::Scalar alpha) const;
@@ -60,7 +59,7 @@ public:
 private:
 
        void loadSceneLoader();
-       void advanceScene();
+       void advanceScene(Mf::Settings& settings);
 
        void thinkTimer();
 
This page took 0.017187 seconds and 4 git commands to generate.