]> Dogcows Code - chaz/yoink/blobdiff - src/Character.hh
included manager class
[chaz/yoink] / src / Character.hh
index 5dfde01922860cbbbe6759f00eacc5a13b1f2bee..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"
 
 
 
-struct Character;
+class Character;
 typedef boost::shared_ptr<Character> CharacterP;
 
 
@@ -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,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);
 
-       Tilemap         tilemap;
-       Animation       animation;
-
-private:
+       //virtual int getOctant(const Mf::Aabb<3>& aabb) const;
 
-       static const Mf::Scalar z = 96.0;
+       Mf::Texture     tilemap;
+       Animation       animation;
 };
 
 
This page took 0.022926 seconds and 4 git commands to generate.