public class Laser
extends java.lang.Object
Constructor and Description |
---|
Laser(Defender d) |
Laser(int startXPosition,
int startYPosition,
int xVelocity,
int yVelocity) |
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getColor() |
boolean |
getDefenderSide() |
int |
getXPosition() |
int |
getXVelocity() |
int |
getYPosition() |
int |
getYVelocity() |
boolean |
isDefenderLaser() |
void |
paint(java.awt.Graphics g) |
boolean |
removeMeFromGame() |
void |
takeOneStep() |
public Laser(int startXPosition, int startYPosition, int xVelocity, int yVelocity)
public Laser(Defender d)
public boolean isDefenderLaser()
public void takeOneStep()
public boolean removeMeFromGame()
public void paint(java.awt.Graphics g)
public int getXPosition()
public int getYPosition()
public java.awt.Color getColor()
public int getXVelocity()
public int getYVelocity()
public boolean getDefenderSide()