Index
All Classes and Interfaces|All Packages|Constant Field Values
G
- g0 - Variable in class controller.LimitedTimeController
- g0 - Variable in class controller.ZickZackController
- GameLoop - Class in base
-
Main class starting any game, contains main().
- GameLoop() - Constructor for class base.GameLoop
-
constructor which calls
GameLoop.defineLevels()
, which adds all levels of this game. - gameMenu - Variable in class ui.GameUI
- gameobject - Variable in class collider.Collider
-
GameObject it belongs to
- gameObject - Variable in class controller.ObjectController
- gameObject - Variable in class rendering.Artist
- GameObject - Class in gameobjects
-
The class
GameObject
represents a (possibly animated) object appearing in a level of the game. - GameObject(String, Playground, double, double, double, double) - Constructor for class gameobjects.GameObject
-
Constructor to initialize a GameObject, respectively set the current
Playground
instance this GameObject belongs to. - GameObject(String, Playground, ObjectController, double, double, double, double) - Constructor for class gameobjects.GameObject
-
Constructor to initialize a GameObject, respectively set the current Playground instance this GameObject belongs to.
- gameobjects - package gameobjects
-
The package gameobjects contains all objects with a visual representation on screen.
- gameObjects - Static variable in class playground.Playground
-
only one set of objects exists concurrently so this can be static
- gameOver() - Method in class playground.BreakoutLevel3
- gameOver() - Method in class playground.BreakoutLevelBase
-
signals to game engine that the game has finished by game over. called every game loop. default implementation is always false.
- gameOver() - Method in class playground.Playground
- gameOver() - Method in class playground.SpaceInvadersLevel
- GamePanel - Class in ui
-
UI element that holds the graphic visualization of current
Playground
. - GamePanel() - Constructor for class ui.GamePanel
- gameTime - Variable in class playground.Playground
- GameUI - Class in ui
-
creates the game UI JFrame containing a canvas (see class
GamePanel
)) for the levels to paint the games. - GameUI(int, int) - Constructor for class ui.GameUI
-
as typical for GUI classes this constructor creates all the components and adds them to the frame.
- generateColliders() - Method in class gameobjects.AnimatedGameobject
- generateColliders() - Method in class gameobjects.EgoObject
- generateColliders() - Method in class gameobjects.GameObject
-
generates and sets collider(s) for this GameObject.
- generateColliders() - Method in class gameobjects.RectObject
-
generates a new
RectCollider
with id-prefix "shotcollider_" and registers it for 'this' [@link RectObject}. - generateColliders() - Method in class gameobjects.TextObject
- getBrickSizeX() - Method in class playground.BreakoutLevel2
- getBrickSizeX() - Method in class playground.BreakoutLevelBaseAdvanced
-
provides the length of one brick.
- getBrickSizeY() - Method in class playground.BreakoutLevel2
- getBrickSizeY() - Method in class playground.BreakoutLevelBaseAdvanced
-
provides the height of one brick.
- getBrickStartX() - Method in class playground.BreakoutLevel2
- getBrickStartX() - Method in class playground.BreakoutLevelBaseAdvanced
-
provides the start coordinate of upper left corner (X value).
- getBrickStartY() - Method in class playground.BreakoutLevel2
- getBrickStartY() - Method in class playground.BreakoutLevelBaseAdvanced
-
provides the start coordinate of upper left corner (Y value).
- getCurrentKey() - Method in class ui.GamePanel
- getCurrentKey() - Method in class ui.GameUI
- getFileList() - Method in class playground.Animation
- getGameTime() - Method in class gameobjects.GameObject
- getGameTime() - Method in class playground.Playground
-
returns time in seconds since level start
- getGameTime() - Method in class rendering.Artist
- getGlobalFlag(String) - Static method in class playground.Playground
-
Retrieves a level-wide flag by name.
- getH() - Method in class rendering.AnimationArtist
- getHeight() - Method in class gameobjects.RectObject
-
Getter for the height
- getId() - Method in class collider.Collider
-
returns the internal unique name
- getId() - Method in class gameobjects.GameObject
-
return the unique object ID.
- getImageList() - Method in class playground.Animation
- getKeyEvents() - Method in class playground.Playground
- getKeyEvents() - Method in class ui.GamePanel
- getKeyEvents() - Method in class ui.GameUI
- getLevelFlag(String) - Method in class playground.Playground
- getMouseEvents() - Method in class playground.Playground
- getMouseEvents() - Method in class ui.GamePanel
- getMouseEvents() - Method in class ui.GameUI
- getNewAction() - Static method in class ui.GameUI
- getObject(String) - Method in class playground.Playground
-
Retrieves a graphics object by name.
- getObjectController() - Method in class gameobjects.GameObject
-
Access to object controller.
- getObjectFlag(String) - Method in class gameobjects.GameObject
- getOrCreateGlobalFlag(String, Object) - Static method in class playground.Playground
-
checks for existence and if not creates the new global flag with the given initial value.
- getOrCreateLevelFlag(String, Object) - Method in class playground.Playground
- getOrCreateObjectFlag(String, Object) - Method in class gameobjects.GameObject
- getPlayground() - Method in class controller.ObjectController
- getPlayground() - Method in class gameobjects.GameObject
- getShowtimeList() - Method in class playground.Animation
- getSizeX() - Method in class playground.Playground
- getSizeY() - Method in class playground.Playground
- getStartupMessage() - Method in class playground.Level1
- getStartupMessage() - Method in class playground.Level2
- getStartupMessage() - Method in class playground.Level3
- getStartupMessage() - Method in class playground.Level4
- getStartupMessage() - Method in class playground.Level5
- getStartupMessage() - Method in class playground.Level6
- getStartupMessage() - Method in class playground.Level7
- getStartupMessage() - Method in class playground.LevelBoss
- getStartupMessage() - Method in class playground.LevelHitTwice
- getStartupMessage() - Method in class playground.LevelMovingHitObjects
-
"Moving Hitting Objects Level!"
- getStartupMessage() - Method in class playground.LevelMovingObjects
-
"Moving Objects Level!"
- getStartupMessage() - Method in class playground.LevelWithBox
-
This method overrides the initial method to change the startup message.
- getStartupMessage() - Method in class playground.SpaceInvadersLevel
-
simply returns the text that should be displayed at level start
- getText() - Method in class gameobjects.TextObject
- getText() - Method in class rendering.TextArtist
- getTextHeight() - Method in class rendering.TextArtist
- getTextWidth() - Method in class rendering.TextArtist
- getTimestep() - Method in class controller.ObjectController
- getTimestep() - Method in class playground.Playground
- getVX() - Method in class controller.ObjectController
- getVX() - Method in class gameobjects.GameObject
-
gets the screen X speed in pixels per frame.
- getVX() - Method in class rendering.Artist
- getVY() - Method in class controller.ObjectController
- getVY() - Method in class gameobjects.GameObject
-
gets the screen Y speed in pixels per frame.
- getVY() - Method in class rendering.Artist
- getW() - Method in class rendering.AnimationArtist
- getWidth() - Method in class gameobjects.RectObject
-
Getter for the width
- getX() - Method in class collider.Collider
-
returns the corresponding game objects X coordinate (center) plus this colliders offset in X (probably zero).
- getX() - Method in class controller.ObjectController
- getX() - Method in class gameobjects.GameObject
-
gets the screen X position.
- getX() - Method in class rendering.Artist
- getY() - Method in class collider.Collider
-
returns the corresponding game objects Y coordinate (center) plus this colliders offset in Y (probably zero).
- getY() - Method in class controller.ObjectController
- getY() - Method in class gameobjects.GameObject
-
gets the screen Y position.
- getY() - Method in class rendering.Artist
- grabFocus() - Method in class ui.GameUI
All Classes and Interfaces|All Packages|Constant Field Values