FreeShop.hpp 943 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef FREESHOP_FREESHOP_HPP
  2. #define FREESHOP_FREESHOP_HPP
  3. #include <TweenEngine/TweenManager.h>
  4. #include <cpp3ds/Graphics.hpp>
  5. #include <cpp3ds/Network.hpp>
  6. #include "States/StateStack.hpp"
  7. #include "GUI/NinePatch.hpp"
  8. #include "AssetManager.hpp"
  9. namespace FreeShop {
  10. extern cpp3ds::Uint64 g_requestJump;
  11. extern bool g_requestShutdown;
  12. extern bool g_requestReboot;
  13. class FreeShop: public cpp3ds::Game {
  14. public:
  15. FreeShop();
  16. ~FreeShop();
  17. void update(float delta);
  18. void processEvent(cpp3ds::Event& event);
  19. void renderTopScreen(cpp3ds::Window& window);
  20. void renderBottomScreen(cpp3ds::Window& window);
  21. static void prepareToCloseApp();
  22. private:
  23. StateStack *m_stateStack;
  24. cpp3ds::Text textFPS;
  25. // Shared State context variables
  26. std::vector<char*> m_data;
  27. cpp3ds::String m_text;
  28. // Backgrounds
  29. bool m_topBG;
  30. bool m_botBG;
  31. gui3ds::NinePatch m_rectTopBG;
  32. gui3ds::NinePatch m_rectBotBG;
  33. };
  34. }
  35. #endif // FREESHOP_FREESHOP_HPP