*/
#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();
- inline void setBar1Progress(Mf::Scalar progress)
+ static HudP alloc()
+ {
+ return HudP(new Hud);
+ }
+
+ void setBar1Progress(Mf::Scalar progress)
{
// pass through
bar1_.setProgress(progress);
}
- inline void setBar2Progress(Mf::Scalar progress)
+ void setBar2Progress(Mf::Scalar progress)
{
// pass through
bar2_.setProgress(progress);
void resize(int width, int height);
void draw(Mf::Scalar alpha = 0.0) const;
+ bool handleEvent(Mf::Event& event);
private: