Create water regions at a given point based on a 2D table of blocks.
static int rabbitescape.engine.WaterRegionFactory.findCapacity |
( |
Set< CellularDirection > |
connections | ) |
|
|
staticprivate |
Generate a 2D lookup table of water regions based on a 2D table of blocks.
- Parameters
-
blockTable | The table of blocks. |
waterAmounts | Any water region contents that are currently known. |
static List<WaterRegion> rabbitescape.engine.WaterRegionFactory.makeWaterRegion |
( |
int |
x, |
|
|
int |
y, |
|
|
Shape[] |
shapes, |
|
|
boolean |
outsideWorld |
|
) |
| |
|
static |
Create a set of water regions from the given shaped blocks.
The documentation for this class was generated from the following file: