Skip to content

Commit

Permalink
Added a test .xml file and did a rough outline of ThermometerExporter…
Browse files Browse the repository at this point in the history
…. It should be completely working other than the commented lines (30-33).
  • Loading branch information
Fuzzabee committed Mar 14, 2024
1 parent bcfd6db commit 1e765dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion puzzles files/thermometer/therm_test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
</colNumbers>
</board>
</puzzle>
</Legup>
</Legup>
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
package edu.rpi.legup.puzzle.thermometer;

public class ThermometerExporter {
}

import java.util.ArrayList;

import edu.rpi.legup.model.PuzzleExporter;
import org.w3c.dom.Document;
import edu.rpi.legup.puzzle.thermometer.elements.Vial;
import edu.rpi.legup.puzzle.thermometer.ThermometerVial;

public class ThermometerExporter extends PuzzleExporter {

Expand All @@ -26,8 +23,8 @@ protected org.w3c.dom.Element createBoardElement(Document newDocument) {

// Creating the XML section for the vials and appending to the board
org.w3c.dom.Element vialsElement = newDocument.createElement("vials");
ArrayList<Vial> vials = board.getVials();
for (Vial vial : vials) {
ArrayList<ThermometerVial> vials = board.getVials();
for (ThermometerVial vial : vials) {
org.w3c.dom.Element vialElement = newDocument.createElement("vial");
// Temp for now, waiting on final implementation of vial
// vialElement.setAttribute("headx", vial.getHeadX());
Expand Down

0 comments on commit 1e765dc

Please sign in to comment.