#include <boost/shared_ptr.hpp>
-#include <Moof/Drawable.hh>
#include <Moof/Event.hh>
#include <Moof/Math.hh>
namespace Mf {
-// forward declaration
-class Engine;
-
-
-struct 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<Layer> LayerP;