]> Dogcows Code - chaz/yoink/blob - src/yoink.hh
pch support
[chaz/yoink] / src / yoink.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 _YOINK_HH_
11 #define _YOINK_HH_
12
13 #include <iostream>
14 #include <string>
15 #include <vector>
16
17 #include <boost/shared_ptr.hpp>
18
19 #include <moof/line.hh> // TODO
20 #include <moof/math.hh>
21 #include <moof/plane.hh>
22 #include <moof/ray.hh>
23 #include <moof/sound.hh>
24 #include <moof/sphere.hh>
25 #include <moof/timer.hh>
26
27 #include "GameState.hh"
28 #include "Hud.hh"
29
30
31 /**
32 * \file yoink.hh
33 * This is the big enchilada.
34 */
35
36 class yoink
37 {
38 public:
39
40 yoink();
41
42 void update(moof::scalar t, moof::scalar dt);
43 void draw(moof::scalar alpha) const;
44 bool handle_event(const moof::event& event);
45
46 private:
47
48 void load_scene_loader();
49 void advance_scene();
50
51 void projection();
52 void projection(moof::scalar width, moof::scalar height);
53
54 mutable GameState state_;
55
56 HudP mHud;
57
58 moof::sound punch_sound_;
59 moof::sound music_;
60
61 moof::ray2 mRay;
62 moof::line2 mLine;
63 moof::circle mCircle;
64
65 moof::timer mRayTimer;
66 void rayTimer();
67 };
68
69
70 #endif // _YOINK_HH_
71
This page took 0.036246 seconds and 4 git commands to generate.