ui.h 469 B

123456789101112131415161718192021222324252627282930
  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(const game::world&);
  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. void spawned(game::field_t::iterator);
  19. };
  20. #endif /* end of include guard */