]> Dogcows Code - chaz/yoink/blobdiff - src/Character.hh
house-keeping
[chaz/yoink] / src / Character.hh
index 5dfde01922860cbbbe6759f00eacc5a13b1f2bee..28e588b627da8ccc0b45b49dc80cbac1b37fc258 100644 (file)
@@ -43,7 +43,7 @@
 
 
 
-struct Character;
+class Character;
 typedef boost::shared_ptr<Character> CharacterP;
 
 
@@ -62,6 +62,12 @@ 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;
 
        Tilemap         tilemap;
@@ -69,7 +75,7 @@ public:
 
 private:
 
-       static const Mf::Scalar z = 96.0;
+       mutable Mf::Scalar mZCoord;
 };
 
 
This page took 0.021615 seconds and 4 git commands to generate.