mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
Removed the parser from queing packets incorrectly. Used the marker boat location packets to get the live updates of the marker positions and implemented the markers being updated much like the boats currently are. This means the course more closely resembles the actual intended course design.
#story[820]
This commit is contained in:
@@ -9,6 +9,7 @@ public class SingleMark extends Mark {
|
||||
private double lat;
|
||||
private double lon;
|
||||
private String name;
|
||||
private int id;
|
||||
|
||||
|
||||
/**
|
||||
@@ -18,10 +19,11 @@ public class SingleMark extends Mark {
|
||||
* @param lat, the latitude of the marker
|
||||
* @param lon, the longitude of the marker
|
||||
*/
|
||||
public SingleMark(String name, double lat, double lon) {
|
||||
super(name, MarkType.SINGLE_MARK);
|
||||
public SingleMark(String name, double lat, double lon, int id) {
|
||||
super(name, MarkType.SINGLE_MARK, id);
|
||||
this.lat = lat;
|
||||
this.lon = lon;
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -30,9 +32,10 @@ public class SingleMark extends Mark {
|
||||
* @param name, the name of the marker
|
||||
*/
|
||||
public SingleMark(String name) {
|
||||
super(name, MarkType.SINGLE_MARK);
|
||||
super(name, MarkType.SINGLE_MARK, 0);
|
||||
this.lat = 0;
|
||||
this.lon = 0;
|
||||
this.id = 0;
|
||||
}
|
||||
|
||||
public double getLatitude() {
|
||||
|
||||
Reference in New Issue
Block a user