Package | Description |
---|---|
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 | Class and Description |
---|---|
class |
AnimatedBlock
A block who has an animation.
|
class |
EntitySpawner
The entitty spawner spawns an entity when a character steps on it.
|
class |
ExplosiveBarrel
An example for a special block: barrel block which can explode
|
class |
Sea
A Sea Block which has a "waves" effect.
|
Modifier and Type | Method and Description |
---|---|
static Block |
Block.createBasicInstance(int id)
You can create a basic block if its id is not reserved.
|
static Block |
Block.getInstance(int id)
Create a block.
|
static Block |
Block.getInstance(int id,
int value)
Create a block through this factory method.
|
Block |
BlockFactory.produce(int id,
int value)
Override this method and fill it with your own custom blocks.
|
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 |
---|---|
abstract Block |
AbstractPosition.getBlock() |
Block |
Coordinate.getBlock() |
Block |
Point.getBlock() |
Block |
Map.getBlock(Coordinate coord) |
Block |
Map.getBlock(int x,
int y,
int z)
Returns a Block without checking the parameters first.
|
Block |
Coordinate.getBlockClamp() |
Block |
Point.getBlockClamp()
Gets the block at the position but clamps coordinate before.
|
Block |
Map.getBlockClamp(int x,
int y,
int z)
Returns a block of the map.
|
abstract Block |
AbstractPosition.getBlockSafe()
Slower than getBlock().
|
Block |
Coordinate.getBlockSafe()
Checks of coordinates are valid before fetching the Block.
|
Block |
Point.getBlockSafe() |
Block[][][] |
Chunk.getData()
Returns the data of the chunk
|
Block[][][] |
Map.getData()
Get the data of the map
|
Block |
Map.getDataClamp(Coordinate coords)
Get a block at a coordinate but clamp it first.
|
Block |
Map.getGroundBlock() |
Modifier and Type | Method and Description |
---|---|
void |
Coordinate.setBlock(Block block)
Set a block in the map where the coordinate is pointing to.
|
void |
Chunk.setData(Block[][][] data) |
void |
Map.setData(Coordinate coords,
Block block)
Set a block at a specific coordinate.
|
void |
Map.setData(int x,
int y,
int z,
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).
|
void |
Map.setDataSafe(int[] coords,
Block block)
Set a block with safety checks (clamping to map).
|
Modifier and Type | Method and Description |
---|---|
Block |
ColorGUI.getBlock(Coordinate coord) |