]>
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/mesh.hh>
28 #include <moof/sound.hh>
30 #include <moof/line.hh> // TODO
31 #include <moof/plane.hh>
32 #include <moof/ray.hh>
33 #include <moof/sphere.hh>
34 #include <moof/timer.hh>
35 #include <moof/view.hh>
37 #include "GameState.hh"
42 typedef boost::shared_ptr
<GameLayer
> GameLayerP
;
44 class GameLayer
: public moof::view
48 static GameLayerP
alloc()
50 return GameLayerP(new GameLayer
);
54 void did_add_to_view();
56 void update(moof::scalar t
, moof::scalar dt
);
57 void draw(moof::scalar alpha
) const;
58 bool handle_event(const moof::event
& event
);
62 void loadSceneLoader();
63 void advanceScene(moof::settings
& settings
);
68 void projection(moof::scalar width
, moof::scalar height
);
71 moof::timer mThinkTimer
;
75 //moof::sound_stream mMusic;
76 moof::sound punch_sound_
;
79 moof::mesh_handle sceneMesh
;
85 moof::timer mRayTimer
;
90 #endif // _GAMELAYER_HH_
This page took 0.032011 seconds and 4 git commands to generate.