]> Dogcows Code - chaz/yoink/blob - src/Character.hh
fixed documentation about where to find licenses
[chaz/yoink] / src / Character.hh
1
2 /*] Copyright (c) 2009-2011, Charles McGarvey [*****************************
3 **] All rights reserved.
4 *
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.
7 *
8 *****************************************************************************/
9
10 #ifndef _CHARACTER_HH_
11 #define _CHARACTER_HH_
12
13 #include <string>
14
15 #include <boost/shared_ptr.hpp>
16
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>
23
24 #include "Animation.hh"
25
26
27 class Character;
28 typedef boost::shared_ptr<Character> CharacterP;
29
30 /**
31 * Parent class of animate objects with "personalities." This basically
32 * includes the heroine herself and the bad guys.
33 */
34 class Character : public moof::rigid_body2
35 {
36 public:
37
38 Character(const std::string& name);
39 virtual ~Character() {}
40
41 virtual void update(moof::scalar t, moof::scalar dt);
42 virtual void draw(moof::scalar alpha) const;
43
44 void addImpulse(moof::vector2 impulse);
45 void addForce(moof::vector2 force);
46 void setPosition(moof::vector2 position);
47
48 //virtual int getOctant(const moof::Aabb<3>& aabb) const;
49
50 moof::sprite tilemap;
51 Animation animation;
52 };
53
54
55 #endif // _CHARACTER_HH_
56
This page took 0.032859 seconds and 5 git commands to generate.