private void Play() { bool playing = true; currentResponse = p.Start(); do { PrintResponse(currentResponse); if (currentResponse.Choices == null || currentResponse.Choices.Length == 0) { playing = false; } else { ParanoiaChoice c = GetPlayerChoice(); currentResponse = p.PlayerChoice(c); } } while (playing); More(); }
private void PrintResponse(ParanoiaResponse r) { Clear(); for (int i = 0; i < r.TextLines.Length; ++i) { string l = r.TextLines [i]; if (l == Paranoia.MORE_STRING) { if (screenLinesPrinted > 0) { More(); } } else { C.WriteLine(l); screenLinesPrinted++; } if (((screenLinesPrinted % 24) == 0) && screenLinesPrinted > 0) { More(); } } }