vooga.games.grandius.sprites.enemy.boss.reacher
Class ReacherEye
java.lang.Object
com.golden.gamedev.object.Sprite
vooga.engine.core.BetterSprite
vooga.games.grandius.sprites.enemy.common.Enemy
vooga.games.grandius.sprites.enemy.boss.BossPart
vooga.games.grandius.sprites.enemy.boss.reacher.ReacherEye
public class ReacherEye
- extends BossPart
The ReacherEye is a shielded station that must be destroyed to lower
Reacher's shields.
Constructor Summary |
ReacherEye(java.awt.image.BufferedImage[] images,
int[] breakpoints,
double x,
double y,
int health,
int shields)
|
Method Summary |
boolean |
deplete(int depleteAmount)
Depletes the health or shields of the ReacherEye. |
BetterSprite |
fireBeam()
Fires the ReacherEye's beam weapon. |
double |
getSpeed()
Returns the speed of the ReacherEye. |
void |
update(long elapsedTime)
Specify how the GameEntity Object should be updated. |
boolean |
willFire(BetterSprite playerSprite)
Determines whether or not this ReacherEye will fire, depending on the position of
itself and the player sprite that is passed into the method. |
Methods inherited from class vooga.engine.core.BetterSprite |
addAnimatedImages, addHorizontalSpeed, addImage, addSprite, addVerticalSpeed, firstRun, forceX, forceY, getCurrentSprite, getDistance, getDoubleStat, getHeight, getHorizontalSpeed, getImage, getIntStat, getStat, getTimeInExistence, getVerticalSpeed, getWidth, getX, getY, isActive, isOnScreen, move, moveTo, moveX, moveY, render, setActive, setAsRenderedSprite, setBackground, setDoubleStat, setHorizontalSpeed, setImage, setImages, setIntStat, setLayer, setLocation, setMovement, setSpeed, setStat, setVerticalSpeed, setX, setY |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReacherEye
public ReacherEye(java.awt.image.BufferedImage[] images,
int[] breakpoints,
double x,
double y,
int health,
int shields)
update
public void update(long elapsedTime)
- Description copied from class:
BetterSprite
- Specify how the GameEntity Object should be updated.
- Overrides:
update
in class BetterSprite
willFire
public boolean willFire(BetterSprite playerSprite)
- Determines whether or not this ReacherEye will fire, depending on the position of
itself and the player sprite that is passed into the method.
- Parameters:
playerSprite
- The player sprite to check the location of, relative to the ReacherEye.
- Returns:
- Whether or not the ReacherEye will fire.
fireBeam
public BetterSprite fireBeam()
- Fires the ReacherEye's beam weapon.
- Returns:
- The Beam sprite to add to the play field.
deplete
public boolean deplete(int depleteAmount)
- Depletes the health or shields of the ReacherEye. Health will only be depleted if the shields have been depleted.
- Parameters:
depleteAmount
- The amount to deplete.
- Returns:
- If the ReacherEye is at health=0 (it is dead).
getSpeed
public double getSpeed()
- Returns the speed of the ReacherEye.
- Returns:
- The speed.