public static void recordStrike(bool foul, bool strikeout) { if (foul == true) { Lists.ResetPlayDescription(); Lists.playDescription += "Foul! \n\n"; addPlayDescription(); if (ScoreBoard.Strikes <= 2 && int.Parse(lblStrks.Text) < 2) { addOneToLabel(lblStrks); } } else if (strikeout) { Lists.ResetPlayDescription(); Lists.playDescription += "Strikeout! \n\n"; addPlayDescription(); addOneToLabel(lblStrks); } else { Lists.ResetPlayDescription(); Lists.playDescription += "Strike! \n\n"; addPlayDescription(); addOneToLabel(lblStrks); } totalNumToAdvance = 0; basesCrossed = 0; Play.endPlay(); }
public static void recordBall(bool walk) { if (walk) { Lists.ResetPlayDescription(); Lists.playDescription += "Walk! \n\n"; addPlayDescription(); } else { Lists.ResetPlayDescription(); Lists.playDescription += "Ball! \n\n"; addPlayDescription(); } addOneToLabel(lblBlls); totalNumToAdvance = 0; basesCrossed = 0; Play.endPlay(); }