]> Dogcows Code - chaz/yoink/blobdiff - src/Character.hh
simplified win32 installer build script
[chaz/yoink] / src / Character.hh
index b1965ce7dd129076ff82b3af3484ae3599157270..6507906d067cf9c3d78162dd6a32916fafa9b76e 100644 (file)
 #ifndef _CHARACTER_HH_
 #define _CHARACTER_HH_
 
-#include <Moof/Animation.hh>
-#include <Moof/Drawable.hh>
-#include <Moof/Resource.hh>
-#include <Moof/Tilemap.hh>
+#include <boost/shared_ptr.hpp>
+
+#include <Moof/Aabb.hh>
+#include <Moof/Entity.hh>
+#include <Moof/Math.hh>
+#include <Moof/RigidBody.hh>
+#include <Moof/Sphere.hh>
+
+#include "Animation.hh"
+#include "Tilemap.hh"
+
+
+
+class Character;
+typedef boost::shared_ptr<Character> CharacterP;
 
 
 /**
- * Parent class of animate objects with "personalities."
+ * Parent class of animate objects with "personalities."  This basically
+ * includes the heroine herself and the bad guys.
  */
 
-class Character : public Mf::Drawable
+class Character : public Mf::RigidBody2
 {
 public:
-       Character(const std::string& name);
-       ~Character();
 
-       void draw(Mf::Scalar alpha);
+       Character(const std::string& name);
+       virtual ~Character() {}
 
-       Mf::Tilemap& getTilemap();
-       Mf::Animation& getAnimation();
+       virtual void update(Mf::Scalar t, Mf::Scalar dt);
+       virtual void draw(Mf::Scalar alpha) const;
 
+       void addImpulse(Mf::Vector2 impulse);
+       void addForce(Mf::Vector2 force);
+       void setPosition(Mf::Vector2 position);
 
-       struct Exception : public std::runtime_error
-       {
-               explicit Exception(const std::string& what_arg) :
-                       std::runtime_error(what_arg) {}
-       };
+       //virtual int getOctant(const Mf::Aabb<3>& aabb) const;
 
-private:
-       Mf::Tilemap tilemap;
-       Mf::Animation animation;
+       Tilemap         tilemap;
+       Animation       animation;
 };
 
 
This page took 0.021078 seconds and 4 git commands to generate.