#include <Moof/Math.hh>
#include <Moof/Rectangle.hh>
+#include "GameLayer.hh"
#include "Tilemap.hh"
{
public:
- Hud();
+ Hud(GameLayer::State& state);
- static HudP alloc()
+ static HudP alloc(GameLayer::State& state)
{
- return HudP(new Hud);
+ return HudP(new Hud(state));
}
void setBar1Progress(Mf::Scalar progress)
void resize(int width, int height);
- void draw(Mf::Scalar alpha = 0.0) const;
- bool handleEvent(Mf::Event& event);
+ void update(Mf::Engine& engine, Mf::Scalar t, Mf::Scalar dt);
+ void draw(Mf::Engine& engine, Mf::Scalar alpha = 0.0) const;
+ bool handleEvent(Mf::Engine& engine, const Mf::Event& event);
private:
+ GameLayer::State& mState;
+
ProgressBar mBar1;
ProgressBar mBar2;