Package | Description |
---|---|
com.BombingGames.WurfelEngine.Core | |
com.BombingGames.WurfelEngine.Core.Gameobjects | |
com.BombingGames.WurfelEngine.Core.Map |
Modifier and Type | Method and Description |
---|---|
Coordinate |
View.screenToGameCoords(int x,
int y)
Returns the coordinates belonging to a point on the screen.
|
Modifier and Type | Method and Description |
---|---|
void |
Camera.focusOnCoords(Coordinate coord)
Use this if you want to focus on a special groundBlock.
|
static 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)
Create a camera focusin a specific coordinate.
|
Modifier and Type | Method and Description |
---|---|
Coordinate |
ExplosiveBarrel.getPos() |
Coordinate |
Sea.getPos() |
Modifier and Type | Method and Description |
---|---|
static Block |
Block.getInstance(int id,
int value,
Coordinate coords)
Create a block through this factory method.
|
Block |
BlockFactory.produce(int id,
int value,
Coordinate coords)
Override this method and fill it with your own custom blocks.
|
Constructor and Description |
---|
EntitySpawner(int id,
Coordinate coords) |
ExplosiveBarrel(int id,
Coordinate coords)
Create a explosive barrel.
|
Sea(int id,
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.cpy() |
abstract Coordinate |
AbstractPosition.getCoord() |
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.
|
static Coordinate |
Point.toCoord(Point pos,
boolean depthCheck,
boolean visibilityCheck)
Game position to game coordinate
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<AbstractEntity> |
Map.getAllEntitysOnCoord(Coordinate coord)
Get every entity on a coord.
|
<type> java.util.ArrayList<type> |
Map.getAllEntitysOnCoord(Coordinate coord,
java.lang.Class<? extends AbstractEntity> type)
Get every entity on a coord of the wanted type
|
Block |
Map.getBlock(Coordinate coord) |
int[] |
Map.getCellOffset(Coordinate coord) |
Block |
Map.getDataClamp(Coordinate coords)
Get a block at a coordinate but clamp it first.
|
void |
Map.setCelloffset(Coordinate coord,
int field,
int value)
Set the offset in one cell.
|
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.
|
Constructor and Description |
---|
Cell(int id,
int value,
Coordinate coords)
Create a new block in this cell.
|
Coordinate(Coordinate coord)
Creates a new coordinate from an existing coordinate
|