Package playground
Class LevelBoss
java.lang.Object
playground.Playground
playground.SpaceInvadersLevel
playground.LevelBoss
Class that realizes all the game logic of a very simple game level. The level contains for now
only two objects that are
GameObject
subclasses: FallingStar
and
EgoObject
. Functions performed by this class are:
- initially set up the level, spawn all object etc., in method
SpaceInvadersLevel.prepareLevel(java.lang.String)
- React to keyboard commands in method
Playground.processKeyEvents(java.util.Stack)
- define basic object movement rules for all objects in the level in the various
ObjectController subclasses:
EgoController
andFallingStarController
.
-
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
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
-
Constructor Details
-
LevelBoss
public LevelBoss()
-