TitleState.hpp 929 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef FREESHOP_TITLESTATE_HPP
  2. #define FREESHOP_TITLESTATE_HPP
  3. #include "State.hpp"
  4. #include "../TweenObjects.hpp"
  5. #include <cpp3ds/Graphics/Sprite.hpp>
  6. #include <cpp3ds/Graphics/Text.hpp>
  7. #include <TweenEngine/TweenManager.h>
  8. namespace FreeShop {
  9. class TitleState : public State
  10. {
  11. public:
  12. TitleState(StateStack& stack, Context& context, StateCallback callback);
  13. ~TitleState();
  14. virtual void renderTopScreen(cpp3ds::Window& window);
  15. virtual void renderBottomScreen(cpp3ds::Window& window);
  16. virtual bool update(float delta);
  17. virtual bool processEvent(const cpp3ds::Event& event);
  18. private:
  19. cpp3ds::Texture m_textureEshop;
  20. cpp3ds::Texture m_textureBag;
  21. cpp3ds::Texture m_AP_Texture;
  22. cpp3ds::Text m_textVersion;
  23. util3ds::TweenText m_textFree;
  24. util3ds::TweenSprite m_spriteEshop;
  25. util3ds::TweenSprite m_spriteBag;
  26. TweenEngine::TweenManager m_manager;
  27. };
  28. } // namespace FreeShop
  29. #endif // FREESHOP_TITLESTATE_HPP