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.

32 lines
787B

  1. #include <map>
  2. #include <string>
  3. #include <vector>
  4. #ifndef memory_Context_HEADER
  5. #define memory_Context_HEADER
  6. struct memory_Context {
  7. bool didLaunch = false;
  8. bool exit = false;
  9. std::string input = "";
  10. std::vector<int> hiddenItems;
  11. std::vector<int> mismatchedItems;
  12. std::string outputGoOn = "";
  13. std::string outputGreeting = "";
  14. std::string outputHelp = "";
  15. std::string outputMatchedItems = "";
  16. std::string outputMismatchedItems = "";
  17. std::string outputPromptSelection = "";
  18. std::string outputVictory = "";
  19. std::map<int, int> playfieldItems;
  20. int playfieldSize = 0;
  21. std::string recentField = "none";
  22. int selectedId = -1;
  23. std::vector<int> selectedItems;
  24. bool victory = false;
  25. };
  26. memory_Context memory_createContext();
  27. #endif // memory_Context_HEADER