]> Dogcows Code - chaz/yoink/blobdiff - src/Character.hh
fixed layer bugs; generalized octree
[chaz/yoink] / src / Character.hh
index 0a3f9f40d0724a26e2fdbaa1457ec8f1ab7f9932..c19206c416a022e1bcabce36c0a591facc35fc22 100644 (file)
@@ -35,7 +35,6 @@
 #include <Moof/Entity.hh>
 #include <Moof/Event.hh>
 #include <Moof/Math.hh>
-#include <Moof/Octree.hh>
 #include <Moof/RK4.hh>
 #include <Moof/Tilemap.hh>
 
@@ -136,33 +135,27 @@ struct Character : public Mf::Entity
        State                   previous;
        State                   current;
 
-       Mf::OctreeNodeP treeNode;
-
 
 private:
 
        static const Mf::Scalar z = 96.0;
 
-       Mf::Vector2 userForce;
-
        Mf::Tilemap             tilemap_;
        Mf::Animation   animation_;
 
-       void updateContainers();
+       //void updateContainers();
 
-public:
+protected:
 
-       static CharacterP alloc(const std::string& name)
-       {
-               return CharacterP(new Character(name));
-       }
+       Mf::Vector2 userForce;
+
+public:
 
        Character(const std::string& name);
        virtual ~Character() {}
 
-       void update(Mf::Scalar t, Mf::Scalar dt);
-       void handleEvent(const Mf::Event& event);
-       void draw(Mf::Scalar alpha) const;
+       virtual void update(Mf::Scalar t, Mf::Scalar dt);
+       virtual void draw(Mf::Scalar alpha) const;
 
        Mf::Tilemap& getTilemap();
        Mf::Animation& getAnimation();
This page took 0.018702 seconds and 4 git commands to generate.