X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FGameLayer.hh;h=37eb8e07874dda42593d09e0efe7a1de2c305bd4;hp=145cf76cba75a0d58d6c3c77ecd8369fefc651e4;hb=6b0a0d0efafe34d48ab344fca3b479553bd4e62c;hpb=e0c0a3b5e7337cde55e520801d2e59e03dc97d9c diff --git a/src/GameLayer.hh b/src/GameLayer.hh index 145cf76..37eb8e0 100644 --- a/src/GameLayer.hh +++ b/src/GameLayer.hh @@ -23,15 +23,15 @@ #include -#include -#include +#include +#include -#include // TODO -#include -#include -#include -#include -#include +#include // TODO +#include +#include +#include +#include +#include #include "GameState.hh" #include "Hud.hh" @@ -40,7 +40,7 @@ class GameLayer; typedef boost::shared_ptr GameLayerP; -class GameLayer : public Mf::View +class GameLayer : public moof::view { public: @@ -50,35 +50,37 @@ public: } GameLayer(); - void didAddToView(); + void did_add_to_view(); - void update(Mf::Scalar t, Mf::Scalar dt); - void draw(Mf::Scalar alpha) const; - bool handleEvent(const Mf::Event& event); + 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(Mf::Settings& settings); + void advanceScene(moof::settings& settings); void thinkTimer(); - void setProjection(); - void setProjection(Mf::Scalar width, Mf::Scalar height); + void projection(); + void projection(moof::scalar width, moof::scalar height); - GameState mState; - Mf::Timer mThinkTimer; + GameState state_; + moof::timer mThinkTimer; HudP mHud; - Mf::SoundStream mMusic; - Mf::Sound mPunchSound; + //moof::sound_stream mMusic; + //moof::sound mPunchSound; + + moof::sound_stream_handle music_; - Mf::Ray2 mRay; - Mf::Line2 mLine; - Mf::Circle mCircle; + moof::ray2 mRay; + moof::line2 mLine; + moof::circle mCircle; - Mf::Timer mRayTimer; + moof::timer mRayTimer; void rayTimer(); };