X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FGameLayer.hh;fp=src%2FGameLayer.hh;h=0000000000000000000000000000000000000000;hp=f3814430e72417f87cd007fe29f4ab23efec5656;hb=af88821a172c4dfd138b91b2a5148ae50b502fa2;hpb=d6990468d297a6cbee98e4d0d33ab37e1b2352c9 diff --git a/src/GameLayer.hh b/src/GameLayer.hh deleted file mode 100644 index f381443..0000000 --- a/src/GameLayer.hh +++ /dev/null @@ -1,84 +0,0 @@ - -/*] Copyright (c) 2009-2010, Charles McGarvey [************************** -**] All rights reserved. -* -* vi:ts=4 sw=4 tw=75 -* -* Distributable under the terms and conditions of the 2-clause BSD license; -* see the file COPYING for a complete text of the license. -* -**************************************************************************/ - -#ifndef _GAMELAYER_HH_ -#define _GAMELAYER_HH_ - -/** - * @file GameLayer.hh - * This is the big enchilada. - */ - -#include -#include -#include - -#include - -#include -#include - -#include // TODO -#include -#include -#include -#include -#include - -#include "GameState.hh" -#include "Hud.hh" - - -class GameLayer; -typedef boost::shared_ptr GameLayerP; - -class GameLayer : public moof::view -{ -public: - - static GameLayerP alloc() - { - return GameLayerP(new GameLayer); - } - GameLayer(); - - void did_add_to_view(); - - void update(moof::scalar t, moof::scalar dt); - void draw(moof::scalar alpha) const; - bool handle_event(const moof::event& event); - -private: - - void loadSceneLoader(); - void advanceScene(moof::settings& settings); - - void projection(); - void projection(moof::scalar width, moof::scalar height); - - mutable GameState state_; - - HudP mHud; - - moof::sound punch_sound_; - moof::sound music_; - - moof::ray2 mRay; - moof::line2 mLine; - moof::circle mCircle; - - moof::timer mRayTimer; - void rayTimer(); -}; - - -#endif // _GAMELAYER_HH_ -