Skip to content

Commit

Permalink
Version 0.1.1 (#1)
Browse files Browse the repository at this point in the history
* Prepare version 0.1.1 branch

* Update README.md

* Add @return tags for javadocs
  • Loading branch information
irzinfante committed May 13, 2023
1 parent 6df2e58 commit fbba649
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ To use the ```wfc4j``` library in your Java project, you can include the library
<dependency>
<groupId>eu.irzinfante</groupId>
<artifactId>wfc4j</artifactId>
<version>0.1.0</version>
<version>0.1.1</version>
</dependency>
```

Expand Down Expand Up @@ -45,4 +45,4 @@ You should have received a copy of the GNU General Public License along with thi

## Acknowledgments

The ```wfc4j``` library is inspired on Dan Shiffman's [Coding Challenge 171: Wave Function Collapse](https://youtu.be/rI_y2GAlQFM) video idea.
The ```wfc4j``` library is inspired on Dan Shiffman's [Coding Challenge 171: Wave Function Collapse](https://youtu.be/rI_y2GAlQFM) video, which is based on the original [Wave Function Collapse Algorithm](https://github.com/mxgmn/WaveFunctionCollapse) developed by Maxim Gumin.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>eu.irzinfante</groupId>
<artifactId>wfc4j</artifactId>
<version>0.1.0</version>
<version>0.1.1</version>
<packaging>jar</packaging>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ public void setCellConstraint(Cell1D<T> cell) throws DimensionException {
/**
* Runs the WFC algorithm to populate the tile values for the cells of the grid
*
* @return A copy of the grid populated with tiles
* @throws TileException If exception occurs at the time of getting the adjacent tiles for some cell's value
*
* @since 0.1.0
Expand All @@ -118,6 +119,7 @@ public Cell1D<T>[] generate() throws TileException {
* Runs the WFC algorithm to populate the tile values for the cells of the grid until the specified recursion level
*
* @param maxDeepth Maximum level of recursion
* @return A copy of the grid populated with tiles
* @throws TileException If exception occurs at the time of getting the adjacent tiles for some cell's value
*
* @since 0.1.0
Expand Down
1 change: 1 addition & 0 deletions src/main/java/eu/irzinfante/wfc4j/model/Cell1D.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public Cell1D(Set<Tile<T>> entropy, int x) {
* Returns the set intersection between the cell's current entropy and the intersectant set of tiles
*
* @param intersectant The set of tiles to be intersected with the cell's current entropy
* @return The set intersection between the current cell entropy and the intersectant set
*
* @since 0.1.0
*/
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/eu/irzinfante/wfc4j/model/TileMap1D.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public TileMap1D(Set<Tile<T>> tileSet) throws TileException {
*
* @param tile The given tile for which to get the possible adjacent tiles
* @param side The side of the given tile from which to get the possible adjacent tiles
* @return Set of tiles that can be adjacent to the provided tile from the selected side
* @throws TileException If the given tile is not in present in the tilemap's tileset
*
* @since 0.1.0
Expand Down Expand Up @@ -102,6 +103,7 @@ public void setAdjacents(Tile<T> tile, Side1D side, Set<Tile<T>> adjacents) thro
* @param tile The given tile for which to add the possible adjacent tile
* @param side The side of the given tile for which to add the possible adjacent tile
* @param adjacent A single tile to be added to the possible adjacent tiles for the given tile
* @return true if the adjacent tile to be added was not already contained in the set of adjacent sets
* @throws TileException If the given tile or the potential adjacent tile to be added are not in present in the tilemap's tileset
*
* @since 0.1.0
Expand Down

0 comments on commit fbba649

Please sign in to comment.