FreeShop.hpp 914 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. class FreeShop: public cpp3ds::Game {
  13. public:
  14. FreeShop();
  15. ~FreeShop();
  16. void update(float delta);
  17. void processEvent(cpp3ds::Event& event);
  18. void renderTopScreen(cpp3ds::Window& window);
  19. void renderBottomScreen(cpp3ds::Window& window);
  20. static void prepareToCloseApp();
  21. private:
  22. StateStack *m_stateStack;
  23. cpp3ds::Text textFPS;
  24. // Shared State context variables
  25. std::vector<char*> m_data;
  26. cpp3ds::String m_text;
  27. // Backgrounds
  28. bool m_topBG;
  29. bool m_botBG;
  30. gui3ds::NinePatch m_rectTopBG;
  31. gui3ds::NinePatch m_rectBotBG;
  32. };
  33. }
  34. #endif // FREESHOP_FREESHOP_HPP