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