Package | Description |
---|---|
com.BombingGames.WurfelEngine.Core.Gameobjects | |
com.BombingGames.WurfelEngine.Core.Map |
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.
|
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.
|
Modifier and Type | Method and Description |
---|---|
abstract Block |
AbstractPosition.getBlock() |
Block |
Cell.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() |
Block |
Map.getBlockClamp(int x,
int y,
int z)
Returns a block of the map.
|
abstract Block |
AbstractPosition.getBlockSafe()
Get the block at the position.
|
Block |
Coordinate.getBlockSafe()
Checks of coordinates are valid before fetching the Block.
|
Block |
Point.getBlockSafe() |
Block |
Map.getDataClamp(Coordinate coords)
Get a block at a coordinate but clamp it first.
|
Modifier and Type | Method and Description |
---|---|
void |
Cell.setBlock(Block block)
Set the block inside this cell.
|
void |
Coordinate.setBlock(Block block) |
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.
|
void |
Map.setDataSafe(int[] coords,
Block block)
Set a block with safety checks.
|