breakout
Class GameObject

java.lang.Object
  extended by breakout.GameObject
Direct Known Subclasses:
Block, MovableGameObject

public abstract class GameObject
extends java.lang.Object


Constructor Summary
GameObject()
           
 
Method Summary
 void addSize(int w, int h)
           
 int getHeight()
           
 int getWidth()
           
 double getX()
           
 double getY()
           
 boolean hits(GameObject go)
           
 boolean isAboveOf(GameObject go)
           
 boolean isBelowOf(GameObject go)
           
 boolean isLeftOf(GameObject go)
           
 boolean isRightOf(GameObject go)
           
 void setHeight(int height)
           
 void setPos(double x, double y)
           
 void setWidth(int width)
           
 void setX(double x)
           
 void setY(double y)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GameObject

public GameObject()
Method Detail

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)