Package | Description |
---|---|
com.BombingGames.WurfelEngine.Core | |
com.BombingGames.WurfelEngine.Core.Gameobjects |
Game Objects are objects like 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 |
---|---|
boolean |
Camera.isClipped(Coordinate coords)
get if a coordinate is clipped
|
Modifier and Type | Method and Description |
---|---|
Coordinate |
Selection.getCoordInNormalDirection() |
Coordinate |
RenderBlock.getPosition() |
Modifier and Type | Method and Description |
---|---|
void |
CoreData.setHealth(Coordinate coord,
byte health)
value between 0-100
|
void |
CustomBlocks.setHealth(Coordinate coord,
byte health,
byte id,
byte value)
define what should happen if you alter the health.
|
RenderBlock |
RenderBlock.spawn(Coordinate coord)
places the object on the map.
|
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()
If needed calculates it and creates new instance else return itself.
|
Coordinate |
Coordinate.getCoord() |
Coordinate |
Point.getCoord()
returns coordinate aquivalent.
|
Coordinate |
Chunk.getTopLeftCoordinate() |
Coordinate |
Coordinate.goToNeighbour(int neighbourSide)
Goes to the the neighbour with the specific side.
|
Modifier and Type | Method and Description |
---|---|
abstract CoreData |
AbstractMap.getBlock(Coordinate coord)
If the block can not be found returns null pointer.
|
CoreData |
ChunkMap.getBlock(Coordinate coord) |
CoreData |
CompleteMap.getBlock(Coordinate coord) |
Chunk |
ChunkMap.getChunk(Coordinate coord)
get the chunk where the coordinates are on
|
java.util.ArrayList<AbstractEntity> |
AbstractMap.getEntitysOnCoord(Coordinate coord)
Get every entity on a coord.
|
<type> java.util.ArrayList<type> |
AbstractMap.getEntitysOnCoord(Coordinate coord,
java.lang.Class<? extends AbstractEntity> type)
Get every entity on a coord of the wanted type
|
boolean |
Chunk.hasCoord(Coordinate coord)
Check if the coordinate has the coordinate inside.
|
abstract void |
AbstractMap.setBlock(Coordinate coord,
CoreData block)
Replace a block.
|
void |
Chunk.setBlock(Coordinate coord,
CoreData block) |
void |
ChunkMap.setBlock(Coordinate coord,
CoreData block) |
void |
CompleteMap.setBlock(Coordinate coord,
CoreData block) |
Constructor and Description |
---|
Coordinate(Coordinate coord)
Creates a new coordinate from an existing coordinate
|
Modifier and Type | Method and Description |
---|---|
RenderBlock |
PlacableGUI.getBlock(Coordinate coord)
Get a new instance of a selected block.
|