public void Reset() { displayComboIndex = -1; infoProvidedIndex = -1; buttonToPress = ""; infoNeeded = NeededInfoEnum.None; buttonLabel = 0; buttonPosition = 0; }
private String RecallPressString(int fromStage, NeededInfoEnum info) { String retStr = ""; if (info == NeededInfoEnum.Label) { int label = memory[fromStage - 1].buttonLabel; retStr += "labeled '"; if (label == 1) { retStr += '1'; } else if (label == 2) { retStr += '2'; } else if (label == 3) { retStr += '3'; } else if (label == 4) { retStr += '4'; } retStr += "'"; } else if (info == NeededInfoEnum.Position) { int position = memory[fromStage - 1].buttonPosition; if (position == 1) { retStr += "first"; } else if (position == 2) { retStr += "second"; } else if (position == 3) { retStr += "third"; } else if (position == 4) { retStr += "fourth"; } retStr += " position"; } return(retStr); }