breakout
Class GameObject
java.lang.Object
breakout.GameObject
- Direct Known Subclasses:
- Block, MovableGameObject
public abstract class GameObject
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GameObject
public GameObject()
isLeftOf
public boolean isLeftOf(GameObject go)
isRightOf
public boolean isRightOf(GameObject go)
isAboveOf
public boolean isAboveOf(GameObject go)
isBelowOf
public boolean isBelowOf(GameObject go)
hits
public boolean hits(GameObject go)
getX
public double getX()
setX
public void setX(double x)
getY
public double getY()
setY
public void setY(double y)
setPos
public void setPos(double x,
double y)
getWidth
public int getWidth()
setWidth
public void setWidth(int width)
getHeight
public int getHeight()
setHeight
public void setHeight(int height)
addSize
public void addSize(int w,
int h)