/*] Copyright (c) 2009-2011, Charles McGarvey [***************************** **] All rights reserved. * * Distributable under the terms and conditions of the 2-clause BSD license; * see the file COPYING for a complete text of the license. * *****************************************************************************/ #ifndef _YOINK_HH_ #define _YOINK_HH_ #include #include #include #include #include // TODO #include #include #include #include #include #include #include "GameState.hh" #include "Hud.hh" /** * \file yoink.hh * This is the big enchilada. */ class yoink { public: yoink(); void update(moof::scalar t, moof::scalar dt); void draw(moof::scalar alpha) const; bool handle_event(const moof::event& event); private: void load_scene_loader(); void advance_scene(); 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 // _YOINK_HH_