Class Paddle
java.lang.Object
org.comp2059.pong.model.Paddle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleintintgetWidth()intgetX()intgetY()voidmove(int distance) voidmoveDown()voidmoveUp()voidsetEnabled(boolean b) voidsetLocation(int xLoc, int yLoc) voidsetSize(int width, int height) static voidsetSizePaddle(int w, int h) voidsetTableBounds(int left, int right, int top, int bottom)
-
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()
-