diff options
Diffstat (limited to 'src/main/java/net/sowgro/npehero/gameplay/Block.java')
-rwxr-xr-x | src/main/java/net/sowgro/npehero/gameplay/Block.java | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/main/java/net/sowgro/npehero/gameplay/Block.java b/src/main/java/net/sowgro/npehero/gameplay/Block.java index 9d68ab6..5d35ccc 100755 --- a/src/main/java/net/sowgro/npehero/gameplay/Block.java +++ b/src/main/java/net/sowgro/npehero/gameplay/Block.java @@ -16,24 +16,20 @@ public class Block extends Rectangle public Color color; public Note note; - public Block(Color color, double width, double height, int cornerRadius, boolean useDropShadow, Note note) + public Block(Color color, boolean useDropShadow, Note note) { this.note = note; this.color = color; super.setFill(color); - super.setWidth(width); - super.setHeight(height); - super.setArcHeight(cornerRadius); - super.setArcWidth(cornerRadius); if (useDropShadow) { enableDropShadow(); } } - public Block(Color color, double width, double height, int cornerRadius) { - this(color, width, height, cornerRadius, true, null); + public Block(Color color, Note note) { + this(color, true, note); } public void enableDropShadow() { |