Package playground
Class BreakoutLevel1
java.lang.Object
playground.Playground
playground.BreakoutLevelBase
playground.BreakoutLevel1
-
Field Summary
Fields inherited from class playground.Playground
FLAGS_ALL, FLAGS_GLOBAL, FLAGS_LEVEL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
prepareLevel
(String level) Prepares a generic Breakout-Type level.Methods inherited from class playground.BreakoutLevelBase
applyGameLogic, gameOver, levelFinished, preferredSizeX, preferredSizeY, redrawLevel, resetRequested
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
-
BreakoutLevel1
public BreakoutLevel1()
-
-
Method Details
-
prepareLevel
Description copied from class:BreakoutLevelBase
Prepares a generic Breakout-Type level. This method relies on the methodsBreakoutLevelBase.createEgoObject()
,BreakoutLevelBase.createBall()
andBreakoutLevelBase.createBrick(int, int)
, among others, which are meant to be overwritten in subclasses.
Attention: the attributesBreakoutLevelBase.ball
andBreakoutLevelBase.ego
need to be set properly to GameObject instances when implementing this methodBreakoutLevelBase.prepareLevel(String)
.- Specified by:
prepareLevel
in classBreakoutLevelBase
- Parameters:
level
- String passes by the game engine (not used currently and can be ignored).
-