X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FMoof%2FLayer.hh;h=9ba428899c6461060dacfbd97c0b0b2806c1ca30;hb=d11d8c63ab52c7f6eca2815e47cd6401e72f2c8c;hp=55e233ed02b39067b267507018273419889481b8;hpb=a31d65a998121df0651c57bfb68782e2a07d2e2f;p=chaz%2Fyoink 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;