Skip to content

Commit

Permalink
Merge pull request #620 from charlestian23/puzzle_editor-short_truth_…
Browse files Browse the repository at this point in the history
…table

Fixed the blank element to be categorized as a placeable element
  • Loading branch information
charlestian23 authored Sep 29, 2023
2 parents de7b570 + 299188e commit de9f1c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public void setType(Element e, MouseEvent m) {
}
// Unknown Element
else {
if (e.getElementID().equals("STTT-UNPL-0003")) {
if (e.getElementID().equals("STTT-PLAC-0003")) {
this.data = ShortTruthTableCellType.UNKNOWN;
}
// Argument Element
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package edu.rpi.legup.puzzle.shorttruthtable.elements;

import edu.rpi.legup.model.elements.NonPlaceableElement;
import edu.rpi.legup.model.elements.PlaceableElement;

public class UnknownElement extends NonPlaceableElement {
public class UnknownElement extends PlaceableElement {
public UnknownElement() {
super("STTT-UNPL-0003", "Unknown Element", "A blank tile", "edu/rpi/legup/images/shorttruthtable/tiles/UnknownTile.png");
super("STTT-PLAC-0003", "Unknown Element", "A blank tile", "edu/rpi/legup/images/shorttruthtable/tiles/UnknownTile.png");
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
STTT-UNPL-0001 : ArgumentElement
STTT-UNPL-0002 : ConditionalBiconditionalElement
STTT-UNPL-0003 : UnknownElement

STTT-PLAC-0001 : GreenElement
STTT-PLAC-0002 : RedElement
STTT-PLAC-0002 : RedElement
STTT-PLAC-0003 : UnknownElement

0 comments on commit de9f1c5

Please sign in to comment.