X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FLayer.hh;h=01a4145ee168f69d97e772ceedc62773fe463ce0;hp=9ba428899c6461060dacfbd97c0b0b2806c1ca30;hb=a295f8def17036c8071b56e181364f99a377cae7;hpb=b357615aba1dbde81e3c6999366604e6001010a7 diff --git a/src/Moof/Layer.hh b/src/Moof/Layer.hh index 9ba4288..01a4145 100644 --- a/src/Moof/Layer.hh +++ b/src/Moof/Layer.hh @@ -38,22 +38,18 @@ namespace Mf { -// forward declaration -class Engine; - - class Layer { public: virtual ~Layer() {} - virtual void pushed(Engine& engine) {} - virtual void popped(Engine& engine) {} + virtual void pushedOntoEngine() {} + virtual void poppedFromEngine() {} - 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) + virtual void update(Scalar t, Scalar dt) {} + virtual void draw(Scalar alpha) const {} + virtual bool handleEvent(const Event& event) { return false; }