#include <Moof/Layer.hh>
#include <Moof/Math.hh>
#include <Moof/Rectangle.hh>
+#include <Moof/Texture.hh>
#include "GameState.hh"
-#include "Tilemap.hh"
// TODO this stuff is still just hacked up
{
public:
- ProgressBar(const Tilemap& tilemap, Tilemap::Index index);
+ ProgressBar(const Mf::Texture& tilemap, Mf::Texture::TileIndex index);
void resize(const Mf::Rectangle& rect);
Mf::Vector2 mVertices[8];
Mf::Scalar mWidth;
- Tilemap mTilemap;
+ Mf::Texture mTilemap;
Mf::Scalar mTexCoords[8];
Mf::Scalar mMidCoords[2];
};
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:
ProgressBar mBar2;
unsigned mNumber;
- Tilemap mFont;
+ Mf::Texture mFont;
Mf::Matrix4 mProjection;
};