Package org.drools.games.pong
Class Ball
- java.lang.Object
-
- org.drools.games.pong.Ball
-
public class Ball extends Object
-
-
Constructor Summary
Constructors Constructor Description Ball(int x, int y, int width)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDx()intgetDy()intgetSpeed()intgetWidth()intgetX()intgetY()voidsetDx(int dx)voidsetDy(int dy)voidsetSpeed(int speed)voidsetWidth(int width)voidsetX(int x)voidsetY(int y)StringtoString()
-
-
-
Method Detail
-
getY
public int getY()
-
setY
public void setY(int y)
-
getX
public int getX()
-
setX
public void setX(int x)
-
getWidth
public int getWidth()
-
setWidth
public void setWidth(int width)
-
getDx
public int getDx()
-
setDx
public void setDx(int dx)
-
getDy
public int getDy()
-
setDy
public void setDy(int dy)
-
getSpeed
public int getSpeed()
-
setSpeed
public void setSpeed(int speed)
-
-