org.drools.games.pong
Class Ball
java.lang.Object
org.drools.games.pong.Ball
public class Ball
- extends Object
Constructor Summary |
Ball(int x,
int y,
int width)
|
Ball
public Ball(int x,
int y,
int width)
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)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.