X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FTitleLayer.hh;h=fe745ee7a4656a83542060db08767613d96ef11b;hp=e3814b2cf22b82069ad10601a4a1d6a23bec9c43;hb=3f6e44698c38b74bb622ad81ea9d2daa636981d2;hpb=a31d65a998121df0651c57bfb68782e2a07d2e2f diff --git a/src/TitleLayer.hh b/src/TitleLayer.hh index e3814b2..fe745ee 100644 --- a/src/TitleLayer.hh +++ b/src/TitleLayer.hh @@ -39,14 +39,16 @@ class TitleLayer; typedef boost::shared_ptr TitleLayerP; -struct TitleLayer : public Mf::Layer +class TitleLayer : public Mf::Layer { +public: + static TitleLayerP alloc() { return TitleLayerP(new TitleLayer); } - void pushed(Mf::Engine& engine); + void addedToCore(); void update(Mf::Scalar t, Mf::Scalar dt); void draw(Mf::Scalar alpha) const; @@ -55,8 +57,6 @@ struct TitleLayer : public Mf::Layer private: Mf::Lerp mFadeIn; - Mf::Engine* mEngine; - Mf::LayerP mGameLayer; };