Research portable Memory game | Исследовать портируемую игру Память
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
641B

  1. #include <map>
  2. #include <string>
  3. #include <vector>
  4. #include "cli.h"
  5. #include "cli_Context.h"
  6. #include "memory.h"
  7. #include "memory_Context.h"
  8. #include "shell.h"
  9. // Greet the user
  10. cli_Context cli_greetUser(
  11. cli_Context c
  12. ) {
  13. c.outputGreeting = "OGS Memory Textual UI";
  14. c.recentField = "outputGreeting";
  15. return c;
  16. }
  17. // Show help (aka commands)
  18. cli_Context cli_showHelp(
  19. cli_Context c
  20. ) {
  21. if (
  22. c.input == "h" ||
  23. c.input == "help"
  24. ) {
  25. c.outputHelp = "Commands:\n\te, exit, q, quit\n\t\tExit\n\th, help\n\t\tList commands\n";
  26. c.recentField = "outputHelp";
  27. return c;
  28. }
  29. c.recentField = "none";
  30. return c;
  31. }