public override void Draw(SpriteBatch theBatch) { mBackground.Draw(theBatch); if (mCurrentState == State.Playing) { mPlayerOnePaddle.Draw(theBatch); mPlayerTwoPaddle.Draw(theBatch); mBall.Draw(theBatch); } mPlayerOneScore.Draw(theBatch); mPlayerTwoScore.Draw(theBatch); if (mCurrentState == State.Start) { mMessageBox.Draw(theBatch); mStartText.Draw(theBatch); } if (mCurrentState == State.PlayerOneScored) { mMessageBox.Draw(theBatch); mGetReadyText.Draw(theBatch); mPlayerOneScoredText.Draw(theBatch); } if (mCurrentState == State.PlayerTwoScored) { mMessageBox.Draw(theBatch); mGetReadyText.Draw(theBatch); mPlayerTwoScoredText.Draw(theBatch); } if (mCurrentState == State.PlayerOneWins) { mMessageBox.Draw(theBatch); mPlayerOneWins.Draw(theBatch); } if (mCurrentState == State.PlayerTwoWins) { mMessageBox.Draw(theBatch); mPlayerTwoWins.Draw(theBatch); } mSafeArea.Draw(theBatch); base.Draw(theBatch); }
public virtual void Draw(SpriteBatch theBatch) { mSafeArea.Draw(theBatch); }