Package playground
Class LevelWithBox
java.lang.Object
playground.Playground
playground.SpaceInvadersLevel
playground.LevelWithBox
extends
SpaceInvadersLevel
with a red box.-
Field Summary
Fields inherited from class playground.SpaceInvadersLevel
EGOSPEED, SHOTSPEED
Fields inherited from class playground.Playground
FLAGS_ALL, FLAGS_GLOBAL, FLAGS_LEVEL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
prepareLevel
(String id) Method creates a new ObjectRectObject
named RedBox.Methods inherited from class playground.SpaceInvadersLevel
applyGameLogic, gameOver, levelFinished, preferredSizeX, preferredSizeY, 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
-
Constructor Details
-
LevelWithBox
public LevelWithBox()
-
-
Method Details
-
prepareLevel
Method creates a new ObjectRectObject
named RedBox. Calls method ofprepareLevel(java.lang.String)
. Object added to the level.- Overrides:
prepareLevel
in classSpaceInvadersLevel
- Parameters:
String
- id to identify the level.
-