ld33_umonster

view src/dragon.h @ 6:3b4460b34d43

progress
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 23 Aug 2015 05:37:09 +0300
parents
children 92d662deb66e
line source
1 #ifndef DRAGON_H_
2 #define DRAGON_H_
4 #include "vmath/vmath.h"
6 class Dragon {
7 private:
8 Vector3 pos, dir;
9 Vector3 head_pos, target;
10 float head_xlim[2], head_ylim[2];
12 public:
13 Dragon();
14 ~Dragon();
16 void set_position(const Vector3 &p);
17 void set_direction(const Vector3 &dir);
18 void set_target(const Vector3 &p);
20 void set_head_limits(float xmin, float xmax, float ymin, float ymax);
21 void move_head(const Vector3 &p);
22 void move_head(float dx, float dy);
23 const Vector3 &head_position() const;
24 Vector3 breath_dir() const;
26 void update();
27 void draw() const;
28 };
30 #endif // DRAGON_H_