]> Dogcows Code - chaz/yoink/blobdiff - src/Character.hh
included manager class
[chaz/yoink] / src / Character.hh
index 28e588b627da8ccc0b45b49dc80cbac1b37fc258..82804babf16b32b37ae4db339229398ef3a8983b 100644 (file)
 #include <Moof/Aabb.hh>
 #include <Moof/Entity.hh>
 #include <Moof/Math.hh>
-#include <Moof/Octree.hh>
 #include <Moof/RigidBody.hh>
 #include <Moof/Sphere.hh>
+#include <Moof/Texture.hh>
 
 #include "Animation.hh"
-#include "Tilemap.hh"
 
 
 
@@ -52,7 +51,7 @@ 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:
 
@@ -62,20 +61,14 @@ public:
        virtual void update(Mf::Scalar t, Mf::Scalar dt);
        virtual void draw(Mf::Scalar alpha) const;
 
-       void setZCoord(Mf::Scalar z);
-
        void addImpulse(Mf::Vector2 impulse);
        void addForce(Mf::Vector2 force);
        void setPosition(Mf::Vector2 position);
 
-       virtual int getOctant(const Mf::Aabb& aabb) const;
+       //virtual int getOctant(const Mf::Aabb<3>& aabb) const;
 
-       Tilemap         tilemap;
+       Mf::Texture     tilemap;
        Animation       animation;
-
-private:
-
-       mutable Mf::Scalar mZCoord;
 };
 
 
This page took 0.021042 seconds and 4 git commands to generate.