*/
#include <Moof/Drawable.hh>
+#include <Moof/Layer.hh>
#include <Moof/Math.hh>
#include <Moof/Rectangle.hh>
#include <Moof/Tilemap.hh>
};
-class Hud : public Mf::Drawable
+class Hud;
+typedef boost::shared_ptr<Hud> HudP;
+
+class Hud : public Mf::Layer
{
public:
Hud();
+ static HudP alloc()
+ {
+ return HudP(new Hud);
+ }
+
void setBar1Progress(Mf::Scalar progress)
{
// pass through
void resize(int width, int height);
void draw(Mf::Scalar alpha = 0.0) const;
+ bool handleEvent(Mf::Event& event);
private: