]>
Dogcows Code - chaz/yoink/blob - src/Character.hh
2 /*] Copyright (c) 2009-2010, Charles McGarvey [**************************
3 **] All rights reserved.
7 * Distributable under the terms and conditions of the 2-clause BSD license;
8 * see the file COPYING for a complete text of the license.
10 **************************************************************************/
12 #ifndef _CHARACTER_HH_
13 #define _CHARACTER_HH_
17 #include <boost/shared_ptr.hpp>
19 #include <Moof/Aabb.hh>
20 #include <Moof/Entity.hh>
21 #include <Moof/Math.hh>
22 #include <Moof/RigidBody.hh>
23 #include <Moof/Sphere.hh>
24 #include <Moof/Texture.hh>
26 #include "Animation.hh"
30 typedef boost::shared_ptr
<Character
> CharacterP
;
34 * Parent class of animate objects with "personalities." This basically
35 * includes the heroine herself and the bad guys.
38 class Character
: public Mf::RigidBody2
42 Character(const std::string
& name
);
43 virtual ~Character() {}
45 virtual void update(Mf::Scalar t
, Mf::Scalar dt
);
46 virtual void draw(Mf::Scalar alpha
) const;
48 void addImpulse(Mf::Vector2 impulse
);
49 void addForce(Mf::Vector2 force
);
50 void setPosition(Mf::Vector2 position
);
52 //virtual int getOctant(const Mf::Aabb<3>& aabb) const;
59 #endif // _CHARACTER_HH_
This page took 0.034487 seconds and 4 git commands to generate.