]>
Dogcows Code - chaz/yoink/blob - src/GameLayer.hh
c537af6391569230118af2ee7ff72f086b5f3d1f
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/Layer.hh>
27 #include <Moof/Math.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>
36 #include "GameState.hh"
41 typedef boost::shared_ptr
<GameLayer
> GameLayerP
;
43 class GameLayer
: public Mf::Layer
49 static GameLayerP
alloc()
51 return GameLayerP(new GameLayer
);
56 void update(Mf::Scalar t
, Mf::Scalar dt
);
57 void draw(Mf::Scalar alpha
) const;
58 bool handleEvent(const Mf::Event
& event
);
62 void loadSceneLoader();
68 void setProjection(Mf::Scalar width
, Mf::Scalar height
);
71 Mf::Timer mThinkTimer
;
75 Mf::SoundStream mMusic
;
76 Mf::Sound mPunchSound
;
87 #endif // _GAMELAYER_HH_
This page took 0.03587 seconds and 4 git commands to generate.