X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FLayer.hh;fp=src%2FMoof%2FLayer.hh;h=9ba428899c6461060dacfbd97c0b0b2806c1ca30;hp=55e233ed02b39067b267507018273419889481b8;hb=e495074443d9fd7bc16137084cf9de3d031b75c4;hpb=c9e20ac06383b20ceb5404c9237e319c2e90d157 diff --git a/src/Moof/Layer.hh b/src/Moof/Layer.hh index 55e233e..9ba4288 100644 --- a/src/Moof/Layer.hh +++ b/src/Moof/Layer.hh @@ -31,7 +31,6 @@ #include -#include #include #include @@ -43,7 +42,7 @@ namespace Mf { class Engine; -class Layer : public Drawable +class Layer { public: @@ -52,9 +51,12 @@ public: virtual void pushed(Engine& engine) {} virtual void popped(Engine& engine) {} - virtual void update(Scalar t, Scalar dt) {} - virtual void draw(Scalar alpha) const {} - virtual bool handleEvent(const Event& event) { return false; } + virtual void update(Engine& engine, Scalar t, Scalar dt) {} + virtual void draw(Engine& engine, Scalar alpha) const {} + virtual bool handleEvent(Engine& engine, const Event& event) + { + return false; + } }; typedef boost::shared_ptr LayerP;