X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FCharacter.hh;h=6507906d067cf9c3d78162dd6a32916fafa9b76e;hp=5dfde01922860cbbbe6759f00eacc5a13b1f2bee;hb=b357615aba1dbde81e3c6999366604e6001010a7;hpb=a31d65a998121df0651c57bfb68782e2a07d2e2f diff --git a/src/Character.hh b/src/Character.hh index 5dfde01..6507906 100644 --- a/src/Character.hh +++ b/src/Character.hh @@ -34,7 +34,6 @@ #include #include #include -#include #include #include @@ -43,7 +42,7 @@ -struct Character; +class Character; typedef boost::shared_ptr CharacterP; @@ -52,7 +51,7 @@ typedef boost::shared_ptr CharacterP; * includes the heroine herself and the bad guys. */ -class Character : public Mf::RigidBody2, public Mf::OctreeInsertable +class Character : public Mf::RigidBody2 { public: @@ -62,14 +61,14 @@ public: virtual void update(Mf::Scalar t, Mf::Scalar dt); virtual void draw(Mf::Scalar alpha) const; - virtual int getOctant(const Mf::Aabb& aabb) const; + void addImpulse(Mf::Vector2 impulse); + void addForce(Mf::Vector2 force); + void setPosition(Mf::Vector2 position); + + //virtual int getOctant(const Mf::Aabb<3>& aabb) const; Tilemap tilemap; Animation animation; - -private: - - static const Mf::Scalar z = 96.0; };