Package playground
Class SpaceInvadersLevelAua
java.lang.Object
playground.Playground
playground.SpaceInvadersLevel
playground.SpaceInvadersLevelAua
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 game events in
SpaceInvadersLevel.actionIfEgoCollidesWithCollect(GameObject, GameObject)
,SpaceInvadersLevel.actionIfEgoCollidesWithEnemy(GameObject, GameObject)
, etc. - 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
-
SpaceInvadersLevelAua
public SpaceInvadersLevelAua()
-