]> Dogcows Code - chaz/yoink/blobdiff - src/GameLayer.hh
further implementing runloop support
[chaz/yoink] / src / GameLayer.hh
diff --git a/src/GameLayer.hh b/src/GameLayer.hh
deleted file mode 100644 (file)
index f381443..0000000
+++ /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 <iostream>
-#include <string>
-#include <vector>
-
-#include <boost/shared_ptr.hpp>
-
-#include <moof/math.hh>
-#include <moof/sound.hh>
-
-#include <moof/line.hh>                // TODO
-#include <moof/plane.hh>
-#include <moof/ray.hh>
-#include <moof/sphere.hh>
-#include <moof/timer.hh>
-#include <moof/view.hh>
-
-#include "GameState.hh"
-#include "Hud.hh"
-
-
-class GameLayer;
-typedef boost::shared_ptr<GameLayer> 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_
-
This page took 0.020141 seconds and 4 git commands to generate.