Package break_out.model
Class Paddle
- java.lang.Object
-
- break_out.model.Paddle
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Color
getColor()
The getter for the paddles colordouble
getHeight()
The getter for the paddles heightPosition
getPosition()
The getter for the paddles positiondouble
getWidth()
The getter for the paddles widthvoid
setColor(java.awt.Color color)
The setter for the paddles colorvoid
setHeight(double height)
The setter for the paddles heightvoid
setPosition(Position position)
The setter for the paddles positionvoid
setWidth(double width)
The setter for the paddles width
-
-
-
Field Detail
-
position
private Position position
The paddles position on the playground
-
width
private double width
The paddles sizing
-
height
private double height
-
color
private java.awt.Color color
The paddles color
-
-
Constructor Detail
-
Paddle
public Paddle(Position position)
The constructor of a paddle
-
-
Method Detail
-
getPosition
public Position getPosition()
The getter for the paddles position- Specified by:
getPosition
in interfaceIPaddle
- Returns:
- position The paddles current position
-
setPosition
public void setPosition(Position position)
The setter for the paddles position- Specified by:
setPosition
in interfaceIPaddle
- Parameters:
position
- The paddles new position
-
getColor
public java.awt.Color getColor()
The getter for the paddles color
-
setColor
public void setColor(java.awt.Color color)
The setter for the paddles color
-
getWidth
public double getWidth()
The getter for the paddles width
-
setWidth
public void setWidth(double width)
The setter for the paddles width
-
getHeight
public double getHeight()
The getter for the paddles height
-
-