]>
Dogcows Code - chaz/yoink/blob - src/Character.hh
2 /*] Copyright (c) 2009-2011, Charles McGarvey [*****************************
3 **] All rights reserved.
5 * Distributable under the terms and conditions of the 2-clause BSD license;
6 * see the file COPYING for a complete text of the license.
8 *****************************************************************************/
10 #ifndef _CHARACTER_HH_
11 #define _CHARACTER_HH_
15 #include <boost/shared_ptr.hpp>
17 #include <moof/aabb.hh>
18 #include <moof/entity.hh>
19 #include <moof/math.hh>
20 #include <moof/rigid_body.hh>
21 #include <moof/sphere.hh>
22 #include <moof/sprite.hh>
24 #include "Animation.hh"
28 typedef boost::shared_ptr
<Character
> CharacterP
;
31 * Parent class of animate objects with "personalities." This basically
32 * includes the heroine herself and the bad guys.
34 class Character
: public moof::rigid_body2
38 Character(const std::string
& name
);
39 virtual ~Character() {}
41 virtual void update(moof::scalar t
, moof::scalar dt
);
42 virtual void draw(moof::scalar alpha
) const;
44 void addImpulse(moof::vector2 impulse
);
45 void addForce(moof::vector2 force
);
46 void setPosition(moof::vector2 position
);
48 //virtual int getOctant(const moof::Aabb<3>& aabb) const;
55 #endif // _CHARACTER_HH_
This page took 0.033137 seconds and 4 git commands to generate.