From 271fe03f7fd6be07e368221f092bb28f166a599d Mon Sep 17 00:00:00 2001 From: HenryCullom <54919530+HenryCullom@users.noreply.github.com> Date: Tue, 26 Jul 2022 13:59:06 -0400 Subject: [PATCH] fixed issue where not all buttons would appear --- .../rpi/legup/puzzle/nurikabe/elements/NumberTile.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/edu/rpi/legup/puzzle/nurikabe/elements/NumberTile.java b/src/main/java/edu/rpi/legup/puzzle/nurikabe/elements/NumberTile.java index 287d4df82..e4c81d75a 100644 --- a/src/main/java/edu/rpi/legup/puzzle/nurikabe/elements/NumberTile.java +++ b/src/main/java/edu/rpi/legup/puzzle/nurikabe/elements/NumberTile.java @@ -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; } /** @@ -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; } }