Package base
Class MultiLevelGame
java.lang.Object
base.GameLoop
base.MultiLevelGame
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
First resets (clears) the already existing level instances of this game's list of levels (GameLoop.resetLevels()
), then adds one instance ofLevel1
by calling#addLevel()
.static void
Methods inherited from class base.GameLoop
addLevel, resetLevels, runGame
-
Constructor Details
-
MultiLevelGame
public MultiLevelGame()
-
-
Method Details
-
main
- Throws:
IOException
-
defineLevels
void defineLevels()Description copied from class:GameLoop
First resets (clears) the already existing level instances of this game's list of levels (GameLoop.resetLevels()
), then adds one instance ofLevel1
by calling#addLevel()
. Should be called only before playing starts (e.g. in constructor or beforeGameLoop.runGame(String[])
is called.
Note: Subclasses ofGameLoop
should override this method to define own levels for their game.- Overrides:
defineLevels
in classGameLoop
-