Package org.drools.games.pong
Class Bat
- java.lang.Object
-
- org.drools.games.pong.Bat
-
public class Bat extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Bat(int x, int y, int width, int height)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDy()intgetHeight()PlayergetPlayer()PlayerIdgetPlayerId()intgetSpeed()intgetWidth()intgetX()intgetY()voidsetDy(int dy)voidsetHeight(int height)voidsetPlayer(Player player)voidsetSpeed(int speed)voidsetWidth(int width)voidsetX(int x)voidsetY(int y)java.lang.StringtoString()
-
-
-
Method Detail
-
getPlayer
public Player getPlayer()
-
setPlayer
public void setPlayer(Player player)
-
getPlayerId
public PlayerId getPlayerId()
-
getSpeed
public int getSpeed()
-
getDy
public int getDy()
-
setDy
public void setDy(int dy)
-
setSpeed
public void setSpeed(int speed)
-
getX
public int getX()
-
setX
public void setX(int x)
-
getY
public int getY()
-
setY
public void setY(int y)
-
getWidth
public int getWidth()
-
setWidth
public void setWidth(int width)
-
getHeight
public int getHeight()
-
setHeight
public void setHeight(int height)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-