Package | Description |
---|---|
com.BombingGames.WurfelEngine.Core | |
com.BombingGames.WurfelEngine.Core.Gameobjects |
Game Objects are objects liek entities and block which can be found in the map.
|
com.BombingGames.WurfelEngine.Core.Map | |
com.BombingGames.WurfelEngine.MapEditor |
Modifier and Type | Method and Description |
---|---|
void |
Camera.focusOnCoords(Coordinate coord)
Use this if you want to focus on a special groundBlock.
|
boolean[] |
Camera.getClipping(Coordinate coords)
get the clipping of a coordinate
|
boolean |
Camera.isClipped(Coordinate coord) |
boolean |
Camera.isCompletelyClipped(Coordinate coord) |
void |
Camera.traceRayTo(Coordinate coord,
boolean neighbours)
Traces the ray to a specific groundBlock.
|
Constructor and Description |
---|
Camera(Coordinate focus,
int x,
int y,
int width,
int height,
GameView view,
Controller controller)
Create a camera focusin a specific coordinate.
|
Modifier and Type | Method and Description |
---|---|
Coordinate |
ExplosiveBarrel.getPosition() |
Coordinate |
Sea.getPosition() |
Modifier and Type | Method and Description |
---|---|
Block |
Block.spawn(Coordinate coord)
places the object on the map.
|
Block |
EntitySpawner.spawn(Coordinate coord) |
Block |
ExplosiveBarrel.spawn(Coordinate coord) |
Block |
Sea.spawn(Coordinate coords) |
Modifier and Type | Method and Description |
---|---|
Coordinate |
Coordinate.addVector(float[] vector)
Add a vector to the coordinates.
|
Coordinate |
Coordinate.addVector(float x,
float y,
float z)
Add a vector to the coordinates.
|
Coordinate |
Coordinate.addVector(com.badlogic.gdx.math.Vector3 vector) |
Coordinate |
Coordinate.clampToMap()
Clamps x and y coordiantes if outside of map.
|
Coordinate |
Coordinate.clampToMapIncludingZ() |
Coordinate |
Coordinate.cpy() |
abstract Coordinate |
AbstractPosition.getCoord()
If needed calculates it and creates new instance else return itself.
|
Coordinate |
Coordinate.getCoord() |
Coordinate |
Point.getCoord()
returns coordinate aquivalent.
|
Coordinate |
Coordinate.neighbourSidetoCoords(int neighbourSide)
Get the neighbour coordinates of the neighbour of the coords you give.
|
Modifier and Type | Method and Description |
---|---|
Block |
Map.getBlock(Coordinate coord) |
Block |
Map.getDataClamp(Coordinate coords)
Get a block at a coordinate but clamp it first.
|
java.util.ArrayList<AbstractEntity> |
Map.getEntitysOnCoord(Coordinate coord)
Get every entity on a coord.
|
<type> java.util.ArrayList<type> |
Map.getEntitysOnCoord(Coordinate coord,
java.lang.Class<? extends AbstractEntity> type)
Get every entity on a coord of the wanted type
|
void |
Map.setData(Coordinate coords,
Block block)
Set a block at a specific coordinate.
|
void |
Map.setDataSafe(Coordinate coord,
Block block)
Set a block with safety checks (clamping to map).
|
Constructor and Description |
---|
Coordinate(Coordinate coord)
Creates a new coordinate from an existing coordinate
|
Modifier and Type | Method and Description |
---|---|
Block |
ColorGUI.getBlock(Coordinate coord) |