Class Bumper
java.lang.Object
Bumper
public class Bumper
- extends java.lang.Object
Constructor Summary |
Bumper()
|
Bumper(int x,
int y,
int xWidth,
int yWidth,
java.awt.Color c)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Bumper
public Bumper()
Bumper
public Bumper(int x,
int y,
int xWidth,
int yWidth,
java.awt.Color c)
getX
public int getX()
getY
public int getY()
getXWidth
public int getXWidth()
getYWidth
public int getYWidth()
getColor
public java.awt.Color getColor()
setX
public void setX(int x)
setY
public void setY(int y)
setXWidth
public void setXWidth(int xWidth)
setYWidth
public void setYWidth(int yWidth)
setColor
public void setColor(java.awt.Color c)
jump
public void jump(int rightEdge,
int bottomEdge)
draw
public void draw(java.awt.Graphics myBuffer)
inBumper
public boolean inBumper(Polkadot dot)