#ifndef _CHARACTER_HH_
#define _CHARACTER_HH_
-#include "resource.hh"
-#include "drawable.hh"
-#include "animation.hh"
-#include "tilemap.hh"
+#include <Moof/Animation.hh>
+#include <Moof/Drawable.hh>
+#include <Moof/Resource.hh>
+#include <Moof/Tilemap.hh>
/**
* Parent class of animate objects with "personalities."
*/
-class Character : public dc::drawable
+class Character : public Mf::Drawable
{
public:
- struct exception : public std::runtime_error
- {
- explicit exception(const std::string& what_arg) :
- std::runtime_error(what_arg) {}
- };
-
Character(const std::string& name);
~Character();
- void draw(dc::scalar alpha);
+ void draw(Mf::Scalar alpha) const;
- dc::tilemap& getTilemap();
- dc::animation& getAnimation();
+ Mf::Tilemap& getTilemap();
+ Mf::Animation& getAnimation();
private:
- dc::tilemap texture;
- dc::animation anim;
+ Mf::Tilemap tilemap;
+ Mf::Animation animation;
};