]>
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/rigid_body.hh>
23 #include <moof/sphere.hh>
24 #include <moof/sprite.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 moof::rigid_body2
42 Character(const std::string
& name
);
43 virtual ~Character() {}
45 virtual void update(moof::scalar t
, moof::scalar dt
);
46 virtual void draw(moof::scalar alpha
) const;
48 void addImpulse(moof::vector2 impulse
);
49 void addForce(moof::vector2 force
);
50 void setPosition(moof::vector2 position
);
52 //virtual int getOctant(const moof::Aabb<3>& aabb) const;
59 #endif // _CHARACTER_HH_
This page took 0.039743 seconds and 4 git commands to generate.