#include <Moof/Entity.hh>
#include <Moof/Event.hh>
#include <Moof/Math.hh>
-#include <Moof/Octree.hh>
#include <Moof/RK4.hh>
#include <Moof/Tilemap.hh>
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();