Skip to content

Commit

Permalink
Merge pull request #218 from HenryCullom/puzzle-editor
Browse files Browse the repository at this point in the history
PUZZLE EDITOR: fixed issue where not all buttons would appear
  • Loading branch information
HazelCullom authored Jul 26, 2022
2 parents 1e2cfc0 + 271fe03 commit b47737b
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

public class NumberTile extends NonPlaceableElement {
private int object_num;
public NumberTile( int num ) {
public NumberTile() {
super("NURI-UNPL-0001", "Number Tile", "A numbered tile", "edu/rpi/legup/images/nurikabe/tiles/NumberTile.png");
object_num = num;
object_num = 0;
}

/**
Expand All @@ -17,11 +17,11 @@ public int getTileNumber()

/**
* @return none
* @param amount Amount to increment object tile by.
* @param num Amount to increment object tile by.
* */
public void incrementTile( int amount )
public void setTileNumber( int num )
{
object_num += amount;
object_num = num;
}

}

0 comments on commit b47737b

Please sign in to comment.