File tree Expand file tree Collapse file tree 3 files changed +1
-15
lines changed
src/main/java/com/codingpupper3033/codebtekml/helpers/map Expand file tree Collapse file tree 3 files changed +1
-15
lines changed Original file line number Diff line number Diff line change 11package com .codingpupper3033 .codebtekml .helpers .map ;
22
3- import org .w3c .dom .Element ;
4-
53/**
64 * Default placemark class.
75 * Extend this class to make specific placemarks.
86 * @author Joshua Miller
97 */
108public abstract class Placemark {
11- /**
12- * Should be overwritten
13- * @param element the new placemark
14- */
15- public Placemark (Element element ) {
16-
17- }
18-
199 /**
2010 * Gets all coordinates that this placemark uses, so we can pre-process them
2111 * @return all the Coordinates in this placemark
@@ -24,7 +14,7 @@ public Placemark(Element element) {
2414
2515 /**
2616 * Should draw the placemark into the game
27- * @param blockName
17+ * @param blockName block to draw placemark with
2818 */
2919 public abstract void draw (String blockName );
3020}
Original file line number Diff line number Diff line change @@ -16,8 +16,6 @@ public class LineString extends Placemark {
1616 private final Coordinate [] coordinates ;
1717
1818 public LineString (Element element ) {
19- super (element );
20-
2119 coordinates = KMLParser .getElementCoordinates (element );
2220 }
2321
Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ public class Point extends Placemark {
1414 private final Coordinate coordinate ;
1515
1616 public Point (Element element ) {
17- super (element );
18-
1917 coordinate = KMLParser .getElementCoordinates (element )[0 ]; // Only one coordinate as it is a point
2018 }
2119
You can’t perform that action at this time.
0 commit comments