X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FHud.hh;h=966ae43bf54a553ace4aedefe65a98eed98c1d17;hb=a4debfe4a5f5d339410788971b698ba00cb7f09c;hp=8fec549278514ff98814a9799fb09cee494e7450;hpb=25aefe01ef7dbdb603c51411e04b0d6a6107684f;p=chaz%2Fyoink diff --git a/src/Hud.hh b/src/Hud.hh index 8fec549..966ae43 100644 --- a/src/Hud.hh +++ b/src/Hud.hh @@ -35,6 +35,7 @@ */ #include +#include #include #include #include @@ -65,12 +66,20 @@ private: }; -class Hud : public Mf::Drawable +class Hud; +typedef boost::shared_ptr 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: