]>
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 Mf::View
47 static GameLayerP
alloc()
49 return GameLayerP(new GameLayer
);
55 void update(Mf::Scalar t
, Mf::Scalar dt
);
56 void draw(Mf::Scalar alpha
) const;
57 bool handleEvent(const Mf::Event
& event
);
61 void loadSceneLoader();
62 void advanceScene(Mf::Settings
& settings
);
67 void setProjection(Mf::Scalar width
, Mf::Scalar height
);
70 Mf::Timer mThinkTimer
;
74 Mf::SoundStream mMusic
;
75 Mf::Sound mPunchSound
;
86 #endif // _GAMELAYER_HH_
This page took 0.042044 seconds and 4 git commands to generate.