#include <boost/shared_ptr.hpp>
-#include <Moof/Layer.hh>
#include <Moof/Math.hh>
#include <Moof/Sound.hh>
#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;
private:
void loadSceneLoader();
- void advanceScene();
+ void advanceScene(Mf::Settings& settings);
void thinkTimer();