public Choice GetChoice(List <byte> options, Color highlight, HandleChoiceDelegate handle, HandleCancelDelegate cancel, bool mainTimerBound = true) { Choice choice = new Choice(options, highlight, handle, cancel); if (mainTimerBound) { gameTimer.AddMainTimerDelegate( delegate { PurgeChoice(choice); }); } else { gameTimer.AddSubTimerDelegate( delegate { PurgeChoice(choice); }); } decisionQueue.Add(choice); ShowChoice(); return(choice); }
public Choice(List <byte> options, Color highlight, HandleChoiceDelegate handle, HandleCancelDelegate cancel) { Options = options; Highlight = highlight; Handle = handle; Cancel = cancel; }
public Choice(byte[] indices, HandleChoiceDelegate handle) { Indices = indices; Facings = new bool[Indices.Length]; for (int i = 0; i < Facings.Length; i++) { Facings[i] = false; } Handle = handle; }
public Choice GetChoice(byte index, HandleChoiceDelegate handle) { Choice retVal = new Choice(new byte[] { index }, handle); gameTimer.AddMainTimerDelegate( delegate { PurgeChoice(retVal); }); decisionQueue.Add(retVal); ShowChoice(); return(retVal); }
public Choice GetChoice(byte index, HandleChoiceDelegate handle, HandleCancelDelegate cancel) { Choice retVal = new Choice(index, handle, cancel); gameTimer.AddMainTimerDelegate( delegate { PurgeChoice(retVal); }); decisionQueue.Add(retVal); ShowChoice(); return(retVal); }
public Choice(byte index, HandleChoiceDelegate handle, HandleCancelDelegate cancel) { Index = index; Handle = handle; Cancel = cancel; }