#include <Moof/Aabb.hh>
#include <Moof/Entity.hh>
#include <Moof/Math.hh>
-#include <Moof/Octree.hh>
#include <Moof/RigidBody.hh>
#include <Moof/Sphere.hh>
-struct Character;
+class Character;
typedef boost::shared_ptr<Character> CharacterP;
* includes the heroine herself and the bad guys.
*/
-class Character : public Mf::RigidBody2, public Mf::OctreeInsertable
+class Character : public Mf::RigidBody2
{
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;
};