-/*] Copyright (c) 2009-2010, Charles McGarvey [**************************
+/*] Copyright (c) 2009-2011, Charles McGarvey [*****************************
**] All rights reserved.
*
-* vi:ts=4 sw=4 tw=75
-*
* Distributable under the terms and conditions of the 2-clause BSD license;
* see the file COPYING for a complete text of the license.
*
-**************************************************************************/
+*****************************************************************************/
#ifndef _CHARACTER_HH_
#define _CHARACTER_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 <Moof/Texture.hh>
+#include <moof/aabb.hh>
+#include <moof/entity.hh>
+#include <moof/math.hh>
+#include <moof/rigid_body.hh>
+#include <moof/sphere.hh>
+#include <moof/sprite.hh>
#include "Animation.hh"
class Character;
typedef boost::shared_ptr<Character> CharacterP;
-
/**
* Parent class of animate objects with "personalities." This basically
* includes the heroine herself and the bad guys.
*/
-
-class Character : public Mf::RigidBody2
+class Character : public moof::rigid_body2
{
public:
Character(const std::string& name);
virtual ~Character() {}
- virtual void update(Mf::Scalar t, Mf::Scalar dt);
- virtual void draw(Mf::Scalar alpha) const;
+ virtual void update(moof::scalar t, moof::scalar dt);
+ virtual void draw(moof::scalar alpha) const;
- void addImpulse(Mf::Vector2 impulse);
- void addForce(Mf::Vector2 force);
- void setPosition(Mf::Vector2 position);
+ void addImpulse(moof::vector2 impulse);
+ void addForce(moof::vector2 force);
+ void setPosition(moof::vector2 position);
- //virtual int getOctant(const Mf::Aabb<3>& aabb) const;
+ //virtual int getOctant(const moof::Aabb<3>& aabb) const;
- Mf::Texture tilemap;
+ moof::sprite tilemap;
Animation animation;
};