]> Dogcows Code - chaz/yoink/blobdiff - src/Hud.cc
dispatch class not a singleton, engine is static
[chaz/yoink] / src / Hud.cc
index 3a178f627491699ec3b5d921035e8a817b964a69..d77bf57bd88146de508d155fa9a2c23dbc1f89d4 100644 (file)
@@ -118,13 +118,13 @@ void ProgressBar::draw(Mf::Scalar alpha) const
 }
 
 
 }
 
 
-Hud::Hud(GameLayer::State& state) :
+Hud::Hud(GameState& state) :
        mState(state),
        mBar1(Tilemap("StatusBars"), 0),
        mBar2(Tilemap("StatusBars"), 2),
        mFont("Font")
 {
        mState(state),
        mBar1(Tilemap("StatusBars"), 0),
        mBar2(Tilemap("StatusBars"), 2),
        mFont("Font")
 {
-       Mf::VideoP video = Mf::Engine::getInstance().getVideo();
+       Mf::VideoP video = Mf::engine.getVideo();
        resize(video->getWidth(), video->getHeight());
 }
 
        resize(video->getWidth(), video->getHeight());
 }
 
This page took 0.020546 seconds and 4 git commands to generate.