|
|
@@ -1,6 +1,7 @@ |
|
|
|
#include <map> |
|
|
|
#include <string> |
|
|
|
#include <vector> |
|
|
|
#include "ctx.h" |
|
|
|
|
|
|
|
#ifndef memory_Context_HEADER |
|
|
|
#define memory_Context_HEADER |
|
|
@@ -11,6 +12,7 @@ struct memory_Context { |
|
|
|
std::string input = ""; |
|
|
|
std::vector<int> hiddenItems; |
|
|
|
std::vector<int> mismatchedItems; |
|
|
|
std::string recentField = "none"; |
|
|
|
std::string outputGoOn = ""; |
|
|
|
std::string outputGreeting = ""; |
|
|
|
std::string outputHelp = ""; |
|
|
@@ -20,10 +22,12 @@ struct memory_Context { |
|
|
|
std::string outputVictory = ""; |
|
|
|
std::map<int, int> playfieldItems; |
|
|
|
int playfieldSize = 0; |
|
|
|
std::string recentField = "none"; |
|
|
|
int selectedId = -1; |
|
|
|
std::vector<int> selectedItems; |
|
|
|
bool victory = false; |
|
|
|
|
|
|
|
template <typename T> T field(const std::string &fieldName); |
|
|
|
template <typename T> void setField(const std::string &fieldName, T value); |
|
|
|
}; |
|
|
|
|
|
|
|
memory_Context memory_createContext(); |
|
|
|