X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FHeroine.hh;h=ad8cd9ab35c9c2281b3bbdfafc21e5fc867af7bb;hp=9ee49d13deb603a22e90c46a55553078cd943431;hb=e973a129b5b83b628ba3f09e8c95682fc74080cd;hpb=a4debfe4a5f5d339410788971b698ba00cb7f09c diff --git a/src/Heroine.hh b/src/Heroine.hh index 9ee49d1..ad8cd9a 100644 --- a/src/Heroine.hh +++ b/src/Heroine.hh @@ -31,28 +31,23 @@ #include -#include -#include #include -#include -#include -#include -#include #include "Character.hh" -struct Heroine; +class Heroine; typedef boost::shared_ptr HeroineP; /** - * Parent class of animate objects with "personalities." This basically - * includes the heroine herself and the bad guys. + * The protagonist. */ -struct Heroine : public Character +class Heroine : public Character { +public: + Heroine(); static HeroineP alloc() @@ -60,7 +55,8 @@ struct Heroine : public Character return HeroineP(new Heroine); } - void handleEvent(const Mf::Event& event); + void update(Mf::Scalar t, Mf::Scalar dt); + bool handleEvent(const Mf::Event& event); };