#include <boost/shared_ptr.hpp>
+#include <Moof/Aabb.hh>
#include <Moof/Entity.hh>
#include <Moof/Math.hh>
-#include <Moof/RK4.hh>
+#include <Moof/Octree.hh>
+#include <Moof/Physics.hh>
+#include <Moof/Sphere.hh>
#include "Animation.hh"
#include "Tilemap.hh"
* includes the heroine herself and the bad guys.
*/
-struct Character : public Mf::Entity
+struct Character : public Mf::Entity, public Mf::OctreeInsertable
{
protected:
virtual void update(Mf::Scalar t, Mf::Scalar dt);
virtual void draw(Mf::Scalar alpha) const;
+ virtual bool isInsideAabb(const Mf::Aabb& aabb) const;
+ virtual int getOctant(const Mf::Aabb& aabb) const;
- Tilemap tilemap;
- Animation animation;
+ Mf::State2 previous;
+ Mf::State2 current;
+
+ Tilemap tilemap;
+ Animation animation;
+
+ Mf::Aabb aabb_;
+ Mf::Sphere sphere_;
+
+private:
+
+ static const Mf::Scalar z = 96.0;
};