X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FYoinkApp.hh;h=ad8d694e62619aee1c947e50f901e864310db95d;hp=69b53d92e6eb93f98809c5d05127660114b036ac;hb=57b78ebe21b1b48acd337daa5a1cb8c383959cfa;hpb=79b5f738f2e38acb60cda7e09f54802933a17105 diff --git a/src/YoinkApp.hh b/src/YoinkApp.hh index 69b53d9..ad8d694 100644 --- a/src/YoinkApp.hh +++ b/src/YoinkApp.hh @@ -29,31 +29,63 @@ #ifndef _YOINKAPP_HH_ #define _YOINKAPP_HH_ +/** + * @file YoinkApp.hh + * This is the big enchilada. + */ + #include #include -#include "engine.hh" +#include +#include +#include +#include +#include +#include + +#include "Character.hh" +#include "TilemapFont.hh" -#include "texture.hh" +#include +#include "Hud.hh" -class YoinkApp : public dc::engine + +class YoinkApp : public Mf::Engine { public: YoinkApp(int argc, char* argv[]); ~YoinkApp(); private: - void update(double t, double dt); - void draw(double alpha); - void dispatchEvent(const SDL_Event& event); + void update(Mf::Scalar t, Mf::Scalar dt); + void draw(Mf::Scalar alpha); + void handleEvent(const Mf::Event& event); + + /** + * Set OpenGL to a state we can know and depend on. + */ + void setupGL(); + void contextRecreated(const Mf::Notification* note); - dc::texture* heroineTexture; + Mf::Sound music; - double state; - double prevstate; + CharacterP heroine; + Mf::Sound punchSound; + TilemapFont *font; + + Mf::Cerps interp; + Mf::Lerps fadeIn; + + Mf::Camera camera; + Mf::SceneP testScene; + + Hud hud; }; #endif // _YOINKAPP_HH_ +/** vim: set ts=4 sw=4 tw=80: *************************************************/ +