]> Dogcows Code - chaz/yoink/blobdiff - src/Hud.hh
new level-based controllers
[chaz/yoink] / src / Hud.hh
index 8fec549278514ff98814a9799fb09cee494e7450..966ae43bf54a553ace4aedefe65a98eed98c1d17 100644 (file)
@@ -35,6 +35,7 @@
  */
 
 #include <Moof/Drawable.hh>
+#include <Moof/Layer.hh>
 #include <Moof/Math.hh>
 #include <Moof/Rectangle.hh>
 #include <Moof/Tilemap.hh>
@@ -65,12 +66,20 @@ private:
 };
 
 
-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
@@ -88,6 +97,7 @@ public:
        void resize(int width, int height);
 
        void draw(Mf::Scalar alpha = 0.0) const;
+       bool handleEvent(Mf::Event& event);
 
 private:
 
This page took 0.0166 seconds and 4 git commands to generate.