private void LogPlayer(CommandCenter c, CommandCArgs e) { if (Enabled) { if (Started) { StrW.WriteLine("Player: " + e.GetIntArrayData()[0]); } } }
private void LogMove(CommandCenter c, CommandCArgs e) { if (Enabled) { if (Started) { if (RoundMoves.Length != 0) { RoundMoves += ", "; } try { RoundMoves += e.GetIntArrayData()[1] + ": " + CommandNames[e.GetIntArrayData()[0]]; } catch (IndexOutOfRangeException) { StrW.WriteLine("Error: The Command Names array did not match with the decision numbers"); } } } }
private void LogResult(CommandCenter c, CommandCArgs e) { if (Enabled) { if (Started) { StrW.WriteLine(RoundMoves); int Res = e.GetIntArrayData()[0]; if (Res > 0) { StrW.WriteLine("Win: " + Res); } else if (Res < 0) { StrW.WriteLine("Loss: " + Res); } else { StrW.WriteLine("Tie: " + Res); } } } }