From c1cc678244b3c00223102f5b814f41d4c370106d Mon Sep 17 00:00:00 2001 From: Nikolas M <75144909+NMiklu@users.noreply.github.com> Date: Tue, 19 Jul 2022 14:24:00 -0400 Subject: [PATCH] Added elements to lightup puzzle Added placeable and non-placeable elements to the lightup puzzle file. --- .../edu/rpi/legup/puzzle/lightup/elements/BlackTile.java | 9 +++++++++ .../edu/rpi/legup/puzzle/lightup/elements/BulbTile.java | 9 +++++++++ .../rpi/legup/puzzle/lightup/elements/NumberTile.java | 9 +++++++++ 3 files changed, 27 insertions(+) create mode 100644 src/main/java/edu/rpi/legup/puzzle/lightup/elements/BlackTile.java create mode 100644 src/main/java/edu/rpi/legup/puzzle/lightup/elements/BulbTile.java create mode 100644 src/main/java/edu/rpi/legup/puzzle/lightup/elements/NumberTile.java diff --git a/src/main/java/edu/rpi/legup/puzzle/lightup/elements/BlackTile.java b/src/main/java/edu/rpi/legup/puzzle/lightup/elements/BlackTile.java new file mode 100644 index 000000000..b72ae1fab --- /dev/null +++ b/src/main/java/edu/rpi/legup/puzzle/lightup/elements/BlackTile.java @@ -0,0 +1,9 @@ +package edu.rpi.legup.puzzle.lightup.elements; + +import edu.rpi.legup.model.elements.PlaceableElement; + +public class BlackTile extends PlaceableElement { + public BlackTile() { + super("LTUP-PLAC-0002", "Black Tile", "The black tile", "edu/rpi/legup/images/lightup/black.gif"); + } +} diff --git a/src/main/java/edu/rpi/legup/puzzle/lightup/elements/BulbTile.java b/src/main/java/edu/rpi/legup/puzzle/lightup/elements/BulbTile.java new file mode 100644 index 000000000..4d065ddd0 --- /dev/null +++ b/src/main/java/edu/rpi/legup/puzzle/lightup/elements/BulbTile.java @@ -0,0 +1,9 @@ +package edu.rpi.legup.puzzle.lightup.elements; + +import edu.rpi.legup.model.elements.PlaceableElement; + +public class BlubTile extends PlaceableElement { + public BulbTile() { + super("LTUP-PLAC-0001", "Bulb Tile", "The bulb tile", "edu/rpi/legup/images/lightup/light.png"); + } +} diff --git a/src/main/java/edu/rpi/legup/puzzle/lightup/elements/NumberTile.java b/src/main/java/edu/rpi/legup/puzzle/lightup/elements/NumberTile.java new file mode 100644 index 000000000..6f7a1c630 --- /dev/null +++ b/src/main/java/edu/rpi/legup/puzzle/lightup/elements/NumberTile.java @@ -0,0 +1,9 @@ +package edu.rpi.legup.puzzle.lightup.elements; + +import edu.rpi.legup.model.elements.NonPlaceableElement; + +public class NumberTile extends NonPlaceableElement { + public NumberTile() { + super("LTUP-UNPL-0001", "Number Tile", "The number tile", "edu/rpi/legup/images/lightup/1.gif"); + } +}