Index

A B C D E F G H I L M N O P R S T U V W X Y Z 
All Classes and Interfaces|All Packages|Constant Field Values

A

AbstractController<T extends DungeonElement> - Class in controller
A controller manages elements of a certain type and is based on a layer system.
AbstractController() - Constructor for class controller.AbstractController
 
add(T) - Method in class controller.AbstractController
Adds the element with default layer (20) to this controller, if it is not already added.
add(T, ControllerLayer) - Method in class controller.AbstractController
Adds the element with the specific layer to this controller, if it is not already added.
addAll(Collection<T>) - Method in class controller.AbstractController
Adds all elements to the default controller, if they are not already added.
addAll(Collection<T>, ControllerLayer) - Method in class controller.AbstractController
Adds all elements with the specific layer to this controller, if they are not already added.
addConnection(Tile) - Method in class level.elements.Tile
connects to tile together.
addConnectionsToNeighbours(Tile) - Method in class level.elements.TileLevel
Check each tile around the tile, if it is accessible add it to the connectionList.
Animatable - Class in basiselements
A object that has an Animation.
Animatable(Painter, SpriteBatch) - Constructor for class basiselements.Animatable
Must be implemented for all objects that should be controlled by the EntityController .
Animation - Class in graphic
A list of textures from an animation.
Animation(Collection<String>, int) - Constructor for class graphic.Animation
Creates an animation.

B

basiselements - package basiselements
 
batch - Variable in class controller.MainController
The batch is necessary to draw ALL the stuff.
BOTTOM - Static variable in record class controller.ControllerLayer
 
BOTTOM_VALUE - Static variable in record class controller.ControllerLayer
 

C

camera - Variable in class controller.MainController
 
changeTileElementType(Tile, LevelElement) - Method in interface level.elements.ILevel
Change the type of tile (including changing texture)
clear() - Method in class controller.AbstractController
Clears the entire controller (removes all elements).
clearLayer(ControllerLayer) - Method in class controller.AbstractController
Removes all elements in the specific layer.
compareTo(ControllerLayer) - Method in record class controller.ControllerLayer
 
connections - Variable in class level.elements.Tile
 
Constants - Class in tools
 
Constants() - Constructor for class tools.Constants
 
contains(int, int) - Method in class level.generator.perlinNoise.NoiseArea
checks whether the given coordinates are in the area
contains(Object) - Method in class controller.AbstractController
Returns true, if the element is in this controller.
controller - package controller
 
controller - Variable in class controller.MainController
Contais all Controller of the Dungeon
ControllerLayer - Record Class in controller
A class to represent a layer on wich elements are drawn.
ControllerLayer(int) - Constructor for record class controller.ControllerLayer
Creates an instance of a ControllerLayer record class.
convertLevelElementToTile(LevelElement[][], DesignLabel) - Static method in class level.elements.TileLevel
Converts the given LevelElement[][] in a corresponding Tile[][]
Coordinate - Class in level.tools
Coordinate in the dungeon, based on array index.
Coordinate(int, int) - Constructor for class level.tools.Coordinate
Create a new Coordinate
Coordinate(Coordinate) - Constructor for class level.tools.Coordinate
Copy a coordinate
create() - Method in class controller.LibgdxSetup
 

D

DEFAULT - Enum constant in enum class level.tools.DesignLabel
 
DEFAULT - Static variable in record class controller.ControllerLayer
 
DEFAULT_VALUE - Static variable in record class controller.ControllerLayer
 
DEFAULT_ZOOM_FACTOR - Static variable in class tools.Constants
200% zoom.
DefaultMainController - Class in starter
 
DefaultMainController() - Constructor for class starter.DefaultMainController
 
designLabel - Variable in class level.elements.Tile
 
DesignLabel - Enum Class in level.tools
Specifies which textures and layouts should be used for the room.
DesktopLauncher - Class in starter
 
DesktopLauncher() - Constructor for class starter.DesktopLauncher
 
directionTo(Tile) - Method in class level.elements.Tile
Returns the direction to a given tile.
dispose() - Method in class controller.LibgdxSetup
 
draw() - Method in class basiselements.DungeonElement
Draws this instance on the batch.
draw() - Method in class basiselements.Entity
Draws this instance on the batch.
draw() - Method in class basiselements.HUDElement
Draws this instance on the batch.
draw(float, float, float, float, String, Point, SpriteBatch) - Method in class graphic.Painter
Draws the instance based on its position.
draw(float, float, String, Point, SpriteBatch) - Method in class graphic.Painter
Draws the instance based on its position with default scaling and specific offset.
draw(String, Point, SpriteBatch) - Method in class graphic.HUDPainter
Draws the instance based on its position.
draw(String, Point, SpriteBatch) - Method in class graphic.Painter
Draws the instance based on its position with default offset and default scaling.
drawLevel() - Method in class level.LevelAPI
 
drawText(String, String, Color, int, int, int, int, int) - Method in class controller.HUDController
Draws a given text on the screen.
drawText(String, String, Color, int, int, int, int, int, int) - Method in class controller.HUDController
Draws a given text on the screen.
drawWithScaling(float, float) - Method in class basiselements.HUDElement
Draws this instance on the batch with a scaling.
drawWithScaling(float, float, String, Point, SpriteBatch) - Method in class graphic.HUDPainter
Draws the instance based on its position with default offset and specific scaling.
drawWithScaling(float, float, String, Point, SpriteBatch) - Method in class graphic.Painter
Draws the instance based on its position with default offset and specific scaling.
DungeonCamera - Class in graphic
Sauron's eye.
DungeonCamera(Entity, float, float) - Constructor for class graphic.DungeonCamera
Creates a new camera.
DungeonElement - Class in basiselements
 
DungeonElement(SpriteBatch) - Constructor for class basiselements.DungeonElement
An object in the dungeon that can be drawn

E

E - Enum constant in enum class level.elements.Tile.Direction
 
elementType - Variable in class level.elements.Tile
 
endTile - Variable in class level.elements.TileLevel
 
Entity - Class in basiselements
 
Entity(Painter, SpriteBatch) - Constructor for class basiselements.Entity
A object that can be controlled by the EntityController .
entityController - Variable in class controller.MainController
 
EntityController - Class in controller
Keeps a set of entities and calls their update method every frame.
EntityController() - Constructor for class controller.EntityController
 
equals(Object) - Method in record class controller.ControllerLayer
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in class level.tools.Coordinate
 
estimate(Tile, Tile) - Method in class level.elements.astar.TileHeuristic
Heuristic used by the pathfinding algorithm
EXIT - Enum constant in enum class level.tools.LevelElement
This field is the exit-field to the next level

F

FIELD_WIDTH_AND_HEIGHT_IN_PIXEL - Static variable in class tools.Constants
Virtual width and height.
findPath(Tile, Tile) - Method in interface level.elements.ILevel
Starts the indexed A* pathfinding algorithm a returns a path
findTexturePath(Tile, Tile[][]) - Static method in class level.tools.TileTextureFactory
Checks which texture must be used for the passed tile based on the surrounding tiles.
findTexturePath(Tile, Tile[][], LevelElement) - Static method in class level.tools.TileTextureFactory
Checks which texture must be used for the passed tile based on the surrounding tiles.
findTexturePath(LevelElement, DesignLabel, LevelElement[][], Coordinate) - Static method in class level.tools.TileTextureFactory
Checks which texture must be used for the passed field based on the surrounding fields.
FLOOR - Enum constant in enum class level.tools.LevelElement
This field is a floor-field
follow(Entity) - Method in class graphic.DungeonCamera
Sets the entity to follow.
forEach(Consumer<? super T>) - Method in class controller.AbstractController
 
frame() - Method in class controller.MainController
Called at the beginning of each frame.
frame() - Method in class starter.DefaultMainController
 
FRAME_RATE - Static variable in class tools.Constants
Frames per seconds.

G

generator - Variable in class controller.MainController
Generates the level
getActiveAnimation() - Method in class basiselements.Animatable
 
getAreas(double, double, double[][], boolean) - Static method in class level.generator.perlinNoise.NoiseArea
generates areas from perlin noise
getAvailablePaths() - Method in class textures.TextureHandler
 
getBatch() - Method in class basiselements.DungeonElement
 
getConnections() - Method in class level.elements.Tile
Used by libGDX pathfinding
getConnections(Tile) - Method in interface level.elements.ILevel
 
getCoordinate() - Method in class level.elements.Tile
 
getCost() - Method in class level.elements.astar.TileConnection
 
getCurrentLevel() - Method in class level.LevelAPI
 
getDesignLabel() - Method in class level.elements.Tile
 
getEndTile() - Method in interface level.elements.ILevel
Get the end tile.
getEndTile() - Method in class level.elements.TileLevel
 
getFollowedObject() - Method in class graphic.DungeonCamera
 
getFromNode() - Method in class level.elements.astar.TileConnection
 
getGenerator() - Method in class level.LevelAPI
 
getHeight() - Method in class level.generator.perlinNoise.NoiseArea
returns the height of the area
getImage() - Method in class level.generator.perlinNoise.NoiseArea
returns a buffered image representing the area
getIndex() - Method in class level.elements.Tile
Used by libGDX pathfinding
getIndex(Tile) - Method in interface level.elements.ILevel
 
getInstance() - Static method in class textures.TextureHandler
 
getLayout() - Method in interface level.elements.ILevel
 
getLayout() - Method in class level.elements.TileLevel
 
getLevel() - Method in interface level.generator.IGenerator
Get a level with a random configuration.
getLevel(long) - Method in class level.generator.perlinNoise.PerlinNoiseGenerator
generates a new level based on the seed
getLevel(DesignLabel) - Method in interface level.generator.IGenerator
Get a level with the given configuration and a random size.
getLevel(DesignLabel, LevelSize) - Method in interface level.generator.IGenerator
Get a level with the given configuration.
getLevel(DesignLabel, LevelSize) - Method in class level.generator.perlinNoise.PerlinNoiseGenerator
 
getLevel(DesignLabel, LevelSize) - Method in class level.generator.randomwalk.RandomWalkGenerator
 
getLevel(DesignLabel, LevelSize, Random) - Method in class level.generator.perlinNoise.PerlinNoiseGenerator
generates new Level
getLevel(LevelSize) - Method in interface level.generator.IGenerator
Get a level with the given configuration and a random design.
getLevelElement() - Method in class level.elements.Tile
 
getNextAnimationTexturePath() - Method in class graphic.Animation
Automatically updates currentFrame to next frame.
getNodeCount() - Method in interface level.elements.ILevel
For libGDX pathfinding algorithms
getNodeCount() - Method in class level.elements.TileLevel
 
getPainter() - Method in class basiselements.Entity
Each drawable should use this Painter to draw itself.
getPainter() - Method in class basiselements.HUDElement
Each drawable should use this Painter to draw itself.
getPosition() - Method in class basiselements.DungeonElement
 
getRandomTile() - Method in interface level.elements.ILevel
 
getRandomTile(LevelElement) - Method in interface level.elements.ILevel
Get a random Tile
getRandomTilePoint() - Method in interface level.elements.ILevel
Get the position of a random Tile as Point
getRandomTilePoint(LevelElement) - Method in interface level.elements.ILevel
Get the position of a random Tile as Point
getSize() - Method in class level.generator.perlinNoise.NoiseArea
returns the size of the area
getStartTile() - Method in interface level.elements.ILevel
Get the start tile.
getStartTile() - Method in class level.elements.TileLevel
 
getTexture(String) - Method in class textures.TextureMap
Searches the HashMap for the matching texture and returns it.
getTexturePath() - Method in class basiselements.Animatable
 
getTexturePath() - Method in class basiselements.DungeonElement
 
getTexturePath() - Method in class level.elements.Tile
 
getTexturePaths(String) - Method in class textures.TextureHandler
Searches for all textures paths that matches with the given regular expression.
getTileAt(Coordinate) - Method in interface level.elements.ILevel
Get a tile on the global position.
getTileHeuristic() - Method in interface level.elements.ILevel
 
getTileHeuristic() - Method in class level.elements.TileLevel
 
getToNode() - Method in class level.elements.astar.TileConnection
 
getValue() - Method in enum class level.tools.LevelElement
 
getWidth() - Method in class level.generator.perlinNoise.NoiseArea
returns the width of the area
globalPosition - Variable in class level.elements.Tile
 
graphic - package graphic
 

H

hashCode() - Method in record class controller.ControllerLayer
Returns a hash code value for this object.
hashCode() - Method in class level.tools.Coordinate
 
hudBatch - Variable in class controller.MainController
This batch is used to draw the HUD elements on it.
hudController - Variable in class controller.MainController
 
HUDController - Class in controller
 
HUDController(SpriteBatch) - Constructor for class controller.HUDController
Keeps a set of HUD elements and makes sure they are drawn.
HUDElement - Class in basiselements
 
HUDElement(HUDPainter, SpriteBatch) - Constructor for class basiselements.HUDElement
A object that can be controlled by the HUDController .
hudPainter - Variable in class controller.MainController
Draws hud
HUDPainter - Class in graphic
Uses LibGDX to draw sprites on the various SpriteBatches.
HUDPainter() - Constructor for class graphic.HUDPainter
 

I

IGenerator - Interface in level.generator
 
ILevel - Interface in level.elements
 
index - Variable in class level.elements.Tile
 
IOnLevelLoader - Interface in level
Interface to use a custom `onLevelLoad` method.
isAccessible() - Method in class level.elements.Tile
Returns if the tile is accessible by a character.
isEmpty() - Method in class controller.AbstractController
Tests, if this controller has no elements.
isOnEndTile(Entity) - Method in interface level.elements.ILevel
Checks if the passed entity is on the tile to the next level.
isPointInFrustum(float, float) - Method in class graphic.DungeonCamera
Checks if the point (x,y) is probably been seen on the screen.
iterator() - Method in class controller.AbstractController
 

L

LARGE - Enum constant in enum class level.tools.LevelSize
 
layout - Variable in class level.elements.TileLevel
 
level - package level
 
level.elements - package level.elements
 
level.elements.astar - package level.elements.astar
 
level.generator - package level.generator
 
level.generator.perlinNoise - package level.generator.perlinNoise
 
level.generator.randomwalk - package level.generator.randomwalk
 
level.tools - package level.tools
 
levelAPI - Variable in class controller.MainController
 
LevelAPI - Class in level
Manages the level.
LevelAPI(SpriteBatch, Painter, IGenerator, IOnLevelLoader) - Constructor for class level.LevelAPI
 
LevelElement - Enum Class in level.tools
Each type of field in a level can be represented by an integer value.
LEVELELEMENT_IS_ACCESSIBLE - Static variable in class tools.Constants
Value for LevelElements that are accessible
LEVELELEMENT_IS_NOT_ACCESSIBLE - Static variable in class tools.Constants
Value for LevelElements that are not accessible
LevelSize - Enum Class in level.tools
Specifies how large a level should be.
LibgdxSetup - Class in controller
ApplicationListener that delegates to the MainGameController.
LibgdxSetup(MainController) - Constructor for class controller.LibgdxSetup
ApplicationListener that delegates to the MainGameController.
loadLevel() - Method in class level.LevelAPI
Load a new level.
loadLevel(DesignLabel) - Method in class level.LevelAPI
Load a new level
LOGO_PATH - Static variable in class tools.Constants
Sets the LibGDX-window logo path.

M

main(String[]) - Static method in class starter.DefaultMainController
The program entry point to start the dungeon.
MainController - Class in controller
The heart of the framework.
MainController() - Constructor for class controller.MainController
 
makeConnections() - Method in class level.elements.TileLevel
Connect each tile with it neighbour tiles.
MEDIUM - Enum constant in enum class level.tools.LevelSize
 

N

N - Enum constant in enum class level.elements.Tile.Direction
 
nodeCount - Variable in class level.elements.TileLevel
 
noise(int, int) - Method in class level.generator.perlinNoise.PerlinNoise
get the noise for one point
noiseAll(double) - Method in class level.generator.perlinNoise.PerlinNoise
get the noise for all points
NoiseArea - Class in level.generator.perlinNoise
area providing some methods to get areas from perlin noise
NoiseArea(boolean[][]) - Constructor for class level.generator.perlinNoise.NoiseArea
generates a new area

O

onLevelLoad() - Method in interface level.IOnLevelLoader
Called after a new level has been loaded.
onLevelLoad() - Method in class starter.DefaultMainController
 

P

painter - Variable in class controller.MainController
Draws objects
Painter - Class in graphic
Uses LibGDX to draw sprites on the various SpriteBatches.
Painter(DungeonCamera) - Constructor for class graphic.Painter
Uses LibGDX to draw sprites on the various SpriteBatches.
PerlinNoise - Class in level.generator.perlinNoise
Class generating a perlin noise array
PerlinNoise(int, int, int[], boolean) - Constructor for class level.generator.perlinNoise.PerlinNoise
PerlinNoise with a random seed
PerlinNoise(int, int, int[], boolean, Random) - Constructor for class level.generator.perlinNoise.PerlinNoise
PerlinNoise
PerlinNoiseGenerator - Class in level.generator.perlinNoise
 
PerlinNoiseGenerator() - Constructor for class level.generator.perlinNoise.PerlinNoiseGenerator
 
Point - Class in tools
For easy handling of positions in the dungeon.
Point(float, float) - Constructor for class tools.Point
 
Point(Point) - Constructor for class tools.Point
Copies the point.
printLevel() - Method in interface level.elements.ILevel
F=Floor, W=Wall, E=Exit, S=Skip/Blank

R

RANDOM - Static variable in interface level.elements.ILevel
 
randomDesign() - Static method in enum class level.tools.DesignLabel
 
randomSize() - Static method in enum class level.tools.LevelSize
 
RandomWalkGenerator - Class in level.generator.randomwalk
 
RandomWalkGenerator() - Constructor for class level.generator.randomwalk.RandomWalkGenerator
 
removable() - Method in class basiselements.DungeonElement
 
remove(Object) - Method in class controller.AbstractController
Removes the element from this controller, if it is in this controller.
render(float) - Method in class controller.MainController
Main game loop.
run(MainController) - Static method in class starter.DesktopLauncher
Starts the dungeon and needs a MainController.
runLoop() - Method in class controller.MainController
 

S

S - Enum constant in enum class level.elements.Tile.Direction
 
setEndTile(Tile) - Method in interface level.elements.ILevel
Set the end tile.
setEndTile(Tile) - Method in class level.elements.TileLevel
 
setFocusPoint(Point) - Method in class graphic.DungeonCamera
Stops following and set the camera on a fix position.
setGenerator(IGenerator) - Method in class level.LevelAPI
Set the level generator
setHudBatch(SpriteBatch) - Method in class controller.MainController
 
setIndex(int) - Method in class level.elements.Tile
Used by libGDX pathfinding
setLevel(ILevel) - Method in class level.LevelAPI
Sets the current level to the given level and calls onLevelLoad().
setLevelElement(LevelElement, String) - Method in class level.elements.Tile
Change the type and texture of the tile.
setRandomEnd() - Method in interface level.elements.ILevel
Mark a random tile as end
setRandomStart() - Method in interface level.elements.ILevel
Mark a random tile as start
setSpriteBatch(SpriteBatch) - Method in class controller.MainController
 
setStartTile(Tile) - Method in interface level.elements.ILevel
Set the start tile.
setStartTile(Tile) - Method in class level.elements.TileLevel
 
setup() - Method in class controller.MainController
Called once at the beginning of the game.
setup() - Method in class starter.DefaultMainController
 
size() - Method in class controller.AbstractController
 
SKIP - Enum constant in enum class level.tools.LevelElement
This field is a blank
SMALL - Enum constant in enum class level.tools.LevelSize
 
starter - package starter
 
startTile - Variable in class level.elements.TileLevel
 

T

TextureHandler - Class in textures
A texture handler class for managing textures paths for further use.
TextureMap - Class in textures
 
TextureMap() - Constructor for class textures.TextureMap
 
texturePath - Variable in class level.elements.Tile
 
textures - package textures
 
Tile - Class in level.elements
A Tile is a field of the level.
Tile(String, Coordinate, LevelElement, DesignLabel) - Constructor for class level.elements.Tile
Creates a new Tile.
Tile.Direction - Enum Class in level.elements
 
TileConnection - Class in level.elements.astar
Represents a connection between two tile
TileConnection(Tile, Tile) - Constructor for class level.elements.astar.TileConnection
Create a directed connection between two Tiles
tileHeuristic - Variable in class level.elements.TileLevel
 
TileHeuristic - Class in level.elements.astar
 
TileHeuristic() - Constructor for class level.elements.astar.TileHeuristic
 
TileLevel - Class in level.elements
A level is a 2D-Array of Tiles.
TileLevel(Tile[][]) - Constructor for class level.elements.TileLevel
Create a new level
TileLevel(LevelElement[][], DesignLabel) - Constructor for class level.elements.TileLevel
Create a new Level
TileTextureFactory - Class in level.tools
 
TileTextureFactory() - Constructor for class level.tools.TileTextureFactory
 
toCoordinate() - Method in class tools.Point
Convert Point to Coordinate by parsing float to int
tools - package tools
 
TOP - Static variable in record class controller.ControllerLayer
 
TOP_VALUE - Static variable in record class controller.ControllerLayer
 
toPoint() - Method in class level.tools.Coordinate
Convert Coordinate to Point
toString() - Method in class controller.AbstractController
 
toString() - Method in record class controller.ControllerLayer
Returns a string representation of this record class.

U

update() - Method in class basiselements.DungeonElement
Will be executed every frame.
update() - Method in class controller.AbstractController
Updates all elements that are registered at this controller, removes deletable elements and calls the update and draw method for every registered element.
update() - Method in class controller.HUDController
Redraws the HUD and all HUD elements.
update() - Method in class graphic.DungeonCamera
Updates camera position.
update() - Method in class level.LevelAPI
Draw level

V

value() - Method in record class controller.ControllerLayer
Returns the value of the value record component.
valueOf(String) - Static method in enum class level.elements.Tile.Direction
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class level.tools.DesignLabel
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class level.tools.LevelElement
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class level.tools.LevelSize
Returns the enum constant of this class with the specified name.
values() - Static method in enum class level.elements.Tile.Direction
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class level.tools.DesignLabel
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class level.tools.LevelElement
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class level.tools.LevelSize
Returns an array containing the constants of this enum class, in the order they are declared.
VIRTUAL_HEIGHT - Static variable in class tools.Constants
 
VIRTUAL_WIDTH - Static variable in class tools.Constants
 

W

W - Enum constant in enum class level.elements.Tile.Direction
 
WALL - Enum constant in enum class level.tools.LevelElement
This field is a wall-field
WINDOW_HEIGHT - Static variable in class tools.Constants
 
WINDOW_TITLE - Static variable in class tools.Constants
Sets the window title for the LibGDX window.
WINDOW_WIDTH - Static variable in class tools.Constants
 

X

x - Variable in class level.tools.Coordinate
 
x - Variable in class tools.Point
 

Y

y - Variable in class level.tools.Coordinate
 
y - Variable in class tools.Point
 

Z

zoom(double) - Method in class level.generator.perlinNoise.NoiseArea
zoom the area
A B C D E F G H I L M N O P R S T U V W X Y Z 
All Classes and Interfaces|All Packages|Constant Field Values