DummyState.hxx 534 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #ifndef SNAKE_DUMMYSTATE_HXX
  3. #define SNAKE_DUMMYSTATE_HXX
  4. #include "GameState.hxx"
  5. #include "ui/Button.hxx"
  6. #include "ui/LineInput.hxx"
  7. class DummyState final : public GameState {
  8. public:
  9. void on_enter(GameStateManager& gsm) override;
  10. void update(GameStateManager& gsm, std::chrono::milliseconds delta_time) override;
  11. void render(SDLRenderer& renderer) override;
  12. private:
  13. Button pause_button_{"Pause", 15, 15, 800, 80};
  14. LineInput name_input_{15, 200, 800, 80, "Felix"};
  15. };
  16. #endif // SNAKE_DUMMYSTATE_HXX