X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FHud.hh;fp=src%2FHud.hh;h=966ae43bf54a553ace4aedefe65a98eed98c1d17;hp=8fec549278514ff98814a9799fb09cee494e7450;hb=892da43bf5796e7c5f593a6d0f53bd797a36bd3e;hpb=ca0f7bdfba63140dca0bd20586d31980f3938eb2 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: