Class Paddle

java.lang.Object
org.comp2059.pong.model.Paddle

public class Paddle extends Object
  • Constructor Details

    • Paddle

      public Paddle()
    • Paddle

      public Paddle(int width, int height, int xLoc, int yLoc)
  • Method Details

    • setLocation

      public void setLocation(int xLoc, int yLoc)
    • setSize

      public void setSize(int width, int height)
    • getX

      public int getX()
    • getY

      public int getY()
    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • getCenterY

      public double getCenterY()
    • setSizePaddle

      public static void setSizePaddle(int w, int h)
    • setTableBounds

      public void setTableBounds(int left, int right, int top, int bottom)
    • setEnabled

      public void setEnabled(boolean b)
    • move

      public void move(int distance)
    • moveUp

      public void moveUp()
    • moveDown

      public void moveDown()