X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FCharacter.hh;h=b1965ce7dd129076ff82b3af3484ae3599157270;hp=2f175ad65d3b7c90aeafaa03a7f6f6de3ba9c5b6;hb=c2321281bf12a7efaedde930422c7ddbc92080d4;hpb=79becf045222f385da5a1b9eb79081f6f5266c86 diff --git a/src/Character.hh b/src/Character.hh index 2f175ad..b1965ce 100644 --- a/src/Character.hh +++ b/src/Character.hh @@ -29,29 +29,41 @@ #ifndef _CHARACTER_HH_ #define _CHARACTER_HH_ +#include +#include +#include +#include + + /** - * @file Character.hh * Parent class of animate objects with "personalities." */ - -class Character : public dc::resource, public dc::drawable +class Character : public Mf::Drawable { public: - struct exception : public std::runtime_error + Character(const std::string& name); + ~Character(); + + void draw(Mf::Scalar alpha); + + Mf::Tilemap& getTilemap(); + Mf::Animation& getAnimation(); + + + struct Exception : public std::runtime_error { - explicit exception(const std::string& what_arg) : + explicit Exception(const std::string& what_arg) : std::runtime_error(what_arg) {} }; - Character(const std::string& name); - - void draw(dc::scalar alpha); - - dc::tilemap* texture; - dc::animation* anim; +private: + Mf::Tilemap tilemap; + Mf::Animation animation; }; #endif // _CHARACTER_HH_ +/** vim: set ts=4 sw=4 tw=80: *************************************************/ +