|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.golden.gamedev.object.Sprite
vooga.engine.core.BetterSprite
vooga.games.galaxyinvaders.sprites.BlockadeSprite
public class BlockadeSprite
The BlockadeSprite class is the class used to implement the barriers which protect the ship. It is initialized in GalaxyInvaders.
Constructor Summary | |
---|---|
BlockadeSprite()
This is the constructor for a BlockadeSprite. |
Method Summary | |
---|---|
void |
decrementHitPoints(int dmg)
This method decreases the blockade's health by a certain amount |
void |
update(long time)
Update method, called by Game every turn. |
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 |
Constructor Detail |
---|
public BlockadeSprite()
name
- see GameEntitySpritespr
- see GameEntitySpriteMethod Detail |
---|
public void update(long time)
update
in class BetterSprite
public void decrementHitPoints(int dmg)
dmg
- the amount to decrease by
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |