Class PongUI

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class PongUI extends GameUI
See Also:
  • Constructor Details

  • Method Details

    • init

      public void init()
      Description copied from class: GameUI
      Initialize the contents of the frame.
      Overrides:
      init in class GameUI
    • drawGame

      public void drawGame(Ball ball, Bat bat1, Bat bat2, Player p1, Player p2)
    • drawTable

      public void drawTable()
    • drawBall

      public void drawBall(Ball ball)
    • drawBat

      public void drawBat(Bat bat)
    • drawScore

      public void drawScore(Player p, int x)