Package break_out.model
Class Position
- java.lang.Object
-
- break_out.model.Position
-
public class Position extends java.lang.Object
This class represents a position within the board in pixel coordinates- Author:
- dmlux
-
-
Constructor Summary
Constructors Constructor Description Position(double x, double y)
The constructor needs a x and y coordinate to be called
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getX()
Getter for the x-coordinatedouble
getY()
Getter for y-coordinatevoid
setX(double x)
Setter for the x-coordinatevoid
setY(double y)
Setter for the y-coordinate
-
-
-
Method Detail
-
getX
public double getX()
Getter for the x-coordinate- Returns:
- x The x value of this position
-
setX
public void setX(double x)
Setter for the x-coordinate- Parameters:
x
- The new x-coordinate
-
getY
public double getY()
Getter for y-coordinate- Returns:
- y The y value of the position
-
setY
public void setY(double y)
Setter for the y-coordinate- Parameters:
y
- The new y-coordinate
-
-