Package | Description |
---|---|
com.BombingGames.WurfelEngine | |
com.BombingGames.WurfelEngine.Core | |
com.BombingGames.WurfelEngine.Core.BasicMainMenu |
This package provies a basic main menu.
|
com.BombingGames.WurfelEngine.Core.Gameobjects |
Game Objects are objects like entities and block which can be found in the map.
|
com.BombingGames.WurfelEngine.Core.LightEngine | |
com.BombingGames.WurfelEngine.Core.Map | |
com.BombingGames.WurfelEngine.Core.SoundEngine | |
com.BombingGames.WurfelEngine.Extensions | |
com.BombingGames.WurfelEngine.MapEditor | |
com.BombingGames.WurfelEngine.shooting |
Modifier and Type | Method and Description |
---|---|
static void |
WE.initAndStartGame(Controller controller,
GameView view,
LoadingScreen customLoadingScreen)
Initialize the main game with you custom controller and view.
|
static void |
WE.switchSetup(Controller controller,
GameView view)
Use this if you want to continue to use already initialized controller and view.
|
static void |
WE.switchSetupWithInit(Controller controller,
GameView view)
Use this if you want to use different controller and views.
|
Modifier and Type | Class and Description |
---|---|
class |
EngineView
A view which is not dependend on the currently active game.
|
Modifier and Type | Method and Description |
---|---|
GameView |
GameplayScreen.getView() |
Modifier and Type | Method and Description |
---|---|
void |
DevTools.render(GameView view)
Renders the diagramm
|
void |
Camera.render(GameView view,
Camera camera)
Renders the viewport
|
void |
GameplayScreen.setView(GameView view) |
Constructor and Description |
---|
Camera(AbstractEntity focusentity,
int x,
int y,
int width,
int height,
GameView view)
Creates a camera focusing an entity.
|
Camera(GameView view)
Creates a fullscale camera pointing at the middle of the map.
|
Camera(int x,
int y,
int width,
int height,
GameView view)
Creates a camera pointing at the middle of the map.
|
Camera(Point center,
int x,
int y,
int width,
int height,
GameView view)
Create a camera focusin a specific coordinate.
|
GameplayScreen(Controller controller,
GameView view,
LoadingScreen loadingScreen)
Create the gameplay state.
|
Modifier and Type | Class and Description |
---|---|
class |
GameViewWithCamera
A simple Controller which adds a camera.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class<? extends GameView> |
BasicMenuItem.getGameView() |
Constructor and Description |
---|
BasicMenuItem(int index,
java.lang.String label,
java.lang.Class<? extends Controller> gameController,
java.lang.Class<? extends GameView> gameView)
Create a new menu Item which can launch a game.
|
Modifier and Type | Method and Description |
---|---|
int |
AbstractGameObject.getDepth(GameView view)
Returns the depth of the object.
|
void |
AbstractGameObject.render(GameView view,
Camera camera)
Draws an object in the color of the light engine and with the lightlevel.
|
void |
EntityShadow.render(GameView view,
Camera camera) |
void |
RenderBlock.render(GameView view,
Camera camera) |
void |
AbstractGameObject.render(GameView view,
Camera camera,
com.badlogic.gdx.graphics.Color color)
Draws an object if it is not hidden and not clipped.
|
void |
AbstractGameObject.render(GameView view,
int xPos,
int yPos)
Renders at a custom position.
|
void |
MovableEntity.render(GameView view,
int xPos,
int yPos) |
void |
RenderBlock.render(GameView view,
int xPos,
int yPos)
Render the whole block at a custom position.
|
void |
AbstractGameObject.render(GameView view,
int xPos,
int yPos,
com.badlogic.gdx.graphics.Color color)
Renders at a custom position with a custom light.
|
void |
RenderBlock.render(GameView view,
int xPos,
int yPos,
com.badlogic.gdx.graphics.Color color,
boolean staticShade)
Renders the whole block at a custom position.
|
void |
RenderBlock.renderSide(GameView view,
Camera camera,
AbstractPosition coords,
Side side,
boolean staticShade)
Render a side of a block at the position of the coordinates.
|
void |
Selection.update(GameView view,
int screenX,
int screenY)
Updates thhe selection using the screen position of the cursor.
|
Modifier and Type | Method and Description |
---|---|
void |
LightEngine.render(GameView view)
Shows the data of the light engine in diagramms.
|
Modifier and Type | Method and Description |
---|---|
int |
AbstractPosition.getDepth(GameView view)
Returns the depth of the object.
|
abstract int |
AbstractPosition.getViewSpcX(GameView View)
Calculate position in view space.
|
int |
Coordinate.getViewSpcX(GameView view) |
int |
Point.getViewSpcX(GameView view) |
abstract int |
AbstractPosition.getViewSpcY(GameView View)
Calculate position in view space.
|
int |
Coordinate.getViewSpcY(GameView view) |
int |
Point.getViewSpcY(GameView view) |
void |
LoadMenu.init(GameView view) |
void |
LoadMenu.setOpen(GameView view,
boolean open)
Open/close the window
|
Modifier and Type | Method and Description |
---|---|
void |
SoundEngine.setView(GameView view) |
Modifier and Type | Method and Description |
---|---|
void |
Minimap.buildTexture(GameView view)
Updates the minimap- Should only be done after changing the map.
|
void |
Minimap.render(GameView view)
Renders the Minimap.
|
Modifier and Type | Class and Description |
---|---|
class |
MapEditorView |
Modifier and Type | Method and Description |
---|---|
GameView |
MapEditorController.getGameplayView() |
Constructor and Description |
---|
MapEditorController(GameView gameplayView,
Controller gameplayController)
Create an editor controller with coresponding gameplay classes.
|
Modifier and Type | Method and Description |
---|---|
void |
Weapon.renderBig(GameView view,
int x,
int y)
Renders a big version of the image
|