ui.h 410 B

12345678910111213141516171819202122232425262728
  1. #ifndef FEEBLE_MUNDANE_UI_H
  2. #define FEEBLE_MUNDANE_UI_H
  3. #include <string>
  4. #include <any>
  5. #include <optional>
  6. #include <cstddef>
  7. #include "game.h"
  8. class ui
  9. {
  10. std::any state;
  11. public:
  12. ui();
  13. void intro(std::string title);
  14. void battle(game::battle&);
  15. std::optional<game::action> action();
  16. std::size_t update(const std::vector<game::state_update>&);
  17. bool loop();
  18. };
  19. #endif /* end of include guard */