Skip to content

Commit fbba649

Browse files
author
Iker Ruiz de Infante Gonzalez
authored
Version 0.1.1 (#1)
* Prepare version 0.1.1 branch * Update README.md * Add @return tags for javadocs
1 parent 6df2e58 commit fbba649

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ To use the ```wfc4j``` library in your Java project, you can include the library
1111
<dependency>
1212
<groupId>eu.irzinfante</groupId>
1313
<artifactId>wfc4j</artifactId>
14-
<version>0.1.0</version>
14+
<version>0.1.1</version>
1515
</dependency>
1616
```
1717

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

4646
## Acknowledgments
4747

48-
The ```wfc4j``` library is inspired on Dan Shiffman's [Coding Challenge 171: Wave Function Collapse](https://youtu.be/rI_y2GAlQFM) video idea.
48+
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.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>eu.irzinfante</groupId>
55
<artifactId>wfc4j</artifactId>
6-
<version>0.1.0</version>
6+
<version>0.1.1</version>
77
<packaging>jar</packaging>
88

99
<properties>

src/main/java/eu/irzinfante/wfc4j/core/AbstractWaveFunctionCollapse1D.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ public void setCellConstraint(Cell1D<T> cell) throws DimensionException {
106106
/**
107107
* Runs the WFC algorithm to populate the tile values for the cells of the grid
108108
*
109+
* @return A copy of the grid populated with tiles
109110
* @throws TileException If exception occurs at the time of getting the adjacent tiles for some cell's value
110111
*
111112
* @since 0.1.0
@@ -118,6 +119,7 @@ public Cell1D<T>[] generate() throws TileException {
118119
* Runs the WFC algorithm to populate the tile values for the cells of the grid until the specified recursion level
119120
*
120121
* @param maxDeepth Maximum level of recursion
122+
* @return A copy of the grid populated with tiles
121123
* @throws TileException If exception occurs at the time of getting the adjacent tiles for some cell's value
122124
*
123125
* @since 0.1.0

src/main/java/eu/irzinfante/wfc4j/model/Cell1D.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public Cell1D(Set<Tile<T>> entropy, int x) {
5050
* Returns the set intersection between the cell's current entropy and the intersectant set of tiles
5151
*
5252
* @param intersectant The set of tiles to be intersected with the cell's current entropy
53+
* @return The set intersection between the current cell entropy and the intersectant set
5354
*
5455
* @since 0.1.0
5556
*/

src/main/java/eu/irzinfante/wfc4j/model/TileMap1D.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public TileMap1D(Set<Tile<T>> tileSet) throws TileException {
6262
*
6363
* @param tile The given tile for which to get the possible adjacent tiles
6464
* @param side The side of the given tile from which to get the possible adjacent tiles
65+
* @return Set of tiles that can be adjacent to the provided tile from the selected side
6566
* @throws TileException If the given tile is not in present in the tilemap's tileset
6667
*
6768
* @since 0.1.0
@@ -102,6 +103,7 @@ public void setAdjacents(Tile<T> tile, Side1D side, Set<Tile<T>> adjacents) thro
102103
* @param tile The given tile for which to add the possible adjacent tile
103104
* @param side The side of the given tile for which to add the possible adjacent tile
104105
* @param adjacent A single tile to be added to the possible adjacent tiles for the given tile
106+
* @return true if the adjacent tile to be added was not already contained in the set of adjacent sets
105107
* @throws TileException If the given tile or the potential adjacent tile to be added are not in present in the tilemap's tileset
106108
*
107109
* @since 0.1.0

0 commit comments

Comments
 (0)