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