]>
Dogcows Code - chaz/yoink/blob - src/GameLayer.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 _GAMELAYER_HH_
13 #define _GAMELAYER_HH_
17 * This is the big enchilada.
24 #include <boost/shared_ptr.hpp>
26 #include <moof/math.hh>
27 #include <moof/sound.hh>
29 #include <moof/line.hh> // TODO
30 #include <moof/plane.hh>
31 #include <moof/ray.hh>
32 #include <moof/sphere.hh>
33 #include <moof/timer.hh>
34 #include <moof/view.hh>
36 #include "GameState.hh"
41 typedef boost::shared_ptr
<GameLayer
> GameLayerP
;
43 class GameLayer
: public moof::view
47 static GameLayerP
alloc()
49 return GameLayerP(new GameLayer
);
53 void did_add_to_view();
55 void update(moof::scalar t
, moof::scalar dt
);
56 void draw(moof::scalar alpha
) const;
57 bool handle_event(const moof::event
& event
);
61 void loadSceneLoader();
62 void advanceScene(moof::settings
& settings
);
65 void projection(moof::scalar width
, moof::scalar height
);
67 mutable GameState state_
;
71 moof::sound punch_sound_
;
78 moof::timer mRayTimer
;
83 #endif // _GAMELAYER_HH_
This page took 0.039943 seconds and 5 git commands to generate.