Package playground
Class LevelHitTwice
java.lang.Object
playground.Playground
playground.SpaceInvadersLevel
playground.LevelHitTwice
extends
SpaceInvadersLevel
with 10 enemies that need two shots each to be destroyed.-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
constant defining the number of shots needed to destroy an enemyFields inherited from class playground.SpaceInvadersLevel
EGOSPEED, SHOTSPEED
Fields inherited from class playground.Playground
FLAGS_ALL, FLAGS_GLOBAL, FLAGS_LEVEL
-
Constructor Summary
-
Method Summary
Methods inherited from class playground.SpaceInvadersLevel
applyGameLogic, gameOver, levelFinished, preferredSizeX, preferredSizeY, prepareLevel, redrawLevel
Methods inherited from class playground.Playground
addObject, addObjectNow, collectObjects, deleteObject, deleteObjectNow, getGameTime, getGlobalFlag, getKeyEvents, getLevelFlag, getMouseEvents, getObject, getOrCreateGlobalFlag, getOrCreateLevelFlag, getSizeX, getSizeY, getTimestep, isPaused, processKeyEvents, processMouseEvents, redraw, reset, resetFlags, setGameTime, setGlobalFlag, setLevelFlag, setPaused, setTimestep, togglePause, updateObjects
-
Field Details
-
MAX_HITS
public static final int MAX_HITSconstant defining the number of shots needed to destroy an enemy- See Also:
-
-
Constructor Details
-
LevelHitTwice
public LevelHitTwice()constructor setting internal name to 'hitTwice'
-