Package math.wfc
Class WFC_Handler
java.lang.Object
math.wfc.WFC_Handler
Class that handles the main Wave function collapse operations.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
WFC_Handler
Constructor for a WFC Handler- Parameters:
w
- width of gridh
- height of gridtileset
- tileset to fill the grid with
-
WFC_Handler
-
-
Method Details
-
wfc
public boolean wfc()Runs Wave function collapse algorithm.- Returns:
- true if the algorithm terminted successfully otherwise false
-
getGrid
A function to get the finished Grid.- Returns:
- Grid of tiles
-
printGrid
public void printGrid()Prints the current Grid.
-