Rabbit Escape  2017-01-14_18:33:47_+0000__(tag:_v0.10.1)
Static Public Member Functions | Static Private Member Functions | List of all members
rabbitescape.engine.WaterRegionFactory Class Reference

Static Public Member Functions

static LookupTable2D< WaterRegiongenerateWaterTable (LookupTable2D< Block > blockTable, Map< Position, Integer > waterAmounts)
 
static void createWaterRegionsAtPoint (LookupTable2D< Block > blockTable, LookupTable2D< WaterRegion > waterTable, int x, int y)
 
static List< WaterRegionmakeWaterRegion (int x, int y, Shape[] shapes, boolean outsideWorld)
 

Static Private Member Functions

static int findCapacity (Set< CellularDirection > connections)
 

Member Function Documentation

static void rabbitescape.engine.WaterRegionFactory.createWaterRegionsAtPoint ( LookupTable2D< Block blockTable,
LookupTable2D< WaterRegion waterTable,
int  x,
int  y 
)
static

Create water regions at a given point based on a 2D table of blocks.

static int rabbitescape.engine.WaterRegionFactory.findCapacity ( Set< CellularDirection connections)
staticprivate
static LookupTable2D<WaterRegion> rabbitescape.engine.WaterRegionFactory.generateWaterTable ( LookupTable2D< Block blockTable,
Map< Position, Integer >  waterAmounts 
)
static

Generate a 2D lookup table of water regions based on a 2D table of blocks.

Parameters
blockTableThe table of blocks.
waterAmountsAny 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: