]>
Dogcows Code - chaz/yoink/blob - GameLayer.hh
885a49daa3392d07de25369573c9f5112b3a005b
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
);
54 void pushedOntoEngine();
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
;
80 Mf::Sphere
<2> mSphere
;
87 #endif // _GAMELAYER_HH_
This page took 0.041739 seconds and 3 git commands to generate.