#ifndef _CHARACTER_HH_
#define _CHARACTER_HH_
+#include "resource.hh"
+#include "drawable.hh"
+#include "animation.hh"
+#include "tilemap.hh"
+
+
/**
- * @file Character.hh
* Parent class of animate objects with "personalities."
*/
-
-class Character : public dc::resource, public dc::drawable
+class Character : public dc::drawable
{
public:
struct exception : public std::runtime_error
};
Character(const std::string& name);
+ ~Character();
void draw(dc::scalar alpha);
- dc::tilemap* texture;
- dc::animation* anim;
+ dc::tilemap& getTilemap();
+ dc::animation& getAnimation();
+
+private:
+ dc::tilemap texture;
+ dc::animation anim;
};
#endif // _CHARACTER_HH_
+/** vim: set ts=4 sw=4 tw=80: *************************************************/
+