X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fyoink.hh;fp=src%2FGameLayer.hh;h=cc4446a387875714cb950bb3769aaa5f54e15ed1;hp=f3814430e72417f87cd007fe29f4ab23efec5656;hb=af88821a172c4dfd138b91b2a5148ae50b502fa2;hpb=d6990468d297a6cbee98e4d0d33ab37e1b2352c9 diff --git a/src/GameLayer.hh b/src/yoink.hh similarity index 75% rename from src/GameLayer.hh rename to src/yoink.hh index f381443..cc4446a 100644 --- a/src/GameLayer.hh +++ b/src/yoink.hh @@ -9,11 +9,11 @@ * **************************************************************************/ -#ifndef _GAMELAYER_HH_ -#define _GAMELAYER_HH_ +#ifndef _YOINK_HH_ +#define _YOINK_HH_ /** - * @file GameLayer.hh + * \file yoink.hh * This is the big enchilada. */ @@ -31,26 +31,16 @@ #include #include #include -#include #include "GameState.hh" #include "Hud.hh" -class GameLayer; -typedef boost::shared_ptr GameLayerP; - -class GameLayer : public moof::view +class yoink { public: - static GameLayerP alloc() - { - return GameLayerP(new GameLayer); - } - GameLayer(); - - void did_add_to_view(); + yoink(); void update(moof::scalar t, moof::scalar dt); void draw(moof::scalar alpha) const; @@ -58,8 +48,8 @@ public: private: - void loadSceneLoader(); - void advanceScene(moof::settings& settings); + void load_scene_loader(); + void advance_scene(); void projection(); void projection(moof::scalar width, moof::scalar height); @@ -80,5 +70,5 @@ private: }; -#endif // _GAMELAYER_HH_ +#endif // _YOINK_HH_