beginning CD implementation
[chaz/yoink] / src / Character.hh
index 19559f38b0f54be1643f31fc29f2949323be977b..50c3da51a6418582569a88145be462acc5b017d6 100644 (file)
 
 #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"
@@ -49,7 +52,7 @@ typedef boost::shared_ptr<Character> CharacterP;
  * includes the heroine herself and the bad guys.
  */
 
-struct Character : public Mf::Entity
+struct Character : public Mf::Entity, public Mf::OctreeInsertable
 {
 protected:
 
@@ -63,9 +66,21 @@ public:
        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;
 };
 
 
This page took 0.01693 seconds and 4 git commands to generate.