X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FLayer.hh;h=01a4145ee168f69d97e772ceedc62773fe463ce0;hp=55e233ed02b39067b267507018273419889481b8;hb=a295f8def17036c8071b56e181364f99a377cae7;hpb=a31d65a998121df0651c57bfb68782e2a07d2e2f diff --git a/src/Moof/Layer.hh b/src/Moof/Layer.hh index 55e233e..01a4145 100644 --- a/src/Moof/Layer.hh +++ b/src/Moof/Layer.hh @@ -31,7 +31,6 @@ #include -#include #include #include @@ -39,22 +38,21 @@ namespace Mf { -// forward declaration -class Engine; - - -class Layer : public Drawable +class Layer { public: virtual ~Layer() {} - virtual void pushed(Engine& engine) {} - virtual void popped(Engine& engine) {} + virtual void pushedOntoEngine() {} + virtual void poppedFromEngine() {} virtual void update(Scalar t, Scalar dt) {} virtual void draw(Scalar alpha) const {} - virtual bool handleEvent(const Event& event) { return false; } + virtual bool handleEvent(const Event& event) + { + return false; + } }; typedef boost::shared_ptr LayerP;