Uses of Class
playground.Playground
Package
Description
The package contains classes implementing a 'bounding box' area around game objects.
The controller package contains Object controllers that govern an objects behavior, without being
involved in its collision or drawing properties.
The package gameobjects contains all objects with a visual representation on screen.
The package playground contains all level specific logic and control of level logic.
-
Uses of Playground in collider
Modifier and TypeMethodDescriptionvoid
Collider.setPlayground
(Playground playground) setter for Playground instance this collider belongs to -
Uses of Playground in controller
-
Uses of Playground in gameobjects
ModifierConstructorDescriptionAnimatedGameobject
(String id, Playground pg, double x, double y, double vx, double vy, double scale, Animation anim, double t0, String abspielmodus) EgoObject
(String id, Playground pg, double x, double y, double vx, double vy, double egoRad) FallingStar
(String id, Playground playground, double x, double y, double vx, double vy, Color color, double rad) GameObject
(String id, Playground playground, double x, double y, double vx, double vy) Constructor to initialize a GameObject, respectively set the currentPlayground
instance this GameObject belongs to.GameObject
(String id, Playground playground, ObjectController controller, double x, double y, double vx, double vy) Constructor to initialize a GameObject, respectively set the current Playground instance this GameObject belongs to.RectObject
(String id, Playground pg, double x, double y, double vx, double vy, double width, double height, Color color) Initializes the RectObject with a suitable RectArtist for drawing the RectObject.TextObject
(String id, Playground playground, double x, double y, double vx, double vy, String text, int size, Color textColor) Constructor. -
Uses of Playground in playground
Modifier and TypeClassDescriptionclass
class
class
extendsSpaceInvadersLevel
with a boring start messageclass
extendsSpaceInvadersLevel
with a different startup message.class
extendsSpaceInvadersLevel
with a ZigZack move of the enemies inLevel3.createSingleEnemy(String, double, double, double, double, ObjectController, double)
and sets a differentLevel3.getStartupMessage()
.class
extendsSpaceInvadersLevel
with aliens that need two hits to be destroyed.class
class
class
class
Class that realizes all the game logic of a very simple game level.class
extendsSpaceInvadersLevel
with 10 enemies that need two shots each to be destroyed.class
Level that creates two RectObjects moving around and if ego is hit by them game is directly lost (lives = 0).class
This level adds two distracting objects to the canvas that cannot collide but bounce around all the time.class
extendsSpaceInvadersLevel
with a red box.class
Class that realizes all the game logic of a very simple game level.class
-
Uses of Playground in ui