|
|
|
@ -12,7 +12,7 @@ import mock.model.collider.Collision;
|
|
|
|
* Represents an individual mark.
|
|
|
|
* Represents an individual mark.
|
|
|
|
* Has a source ID, name, and position.
|
|
|
|
* Has a source ID, name, and position.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public class Mark extends Collider, XMLMark {
|
|
|
|
public class Mark extends Collider{
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* The source ID of the mark.
|
|
|
|
* The source ID of the mark.
|
|
|
|
@ -42,11 +42,14 @@ public class Mark extends Collider, XMLMark {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public Mark(int sourceID, String name, GPSCoordinate position) {
|
|
|
|
public Mark(int sourceID, String name, GPSCoordinate position) {
|
|
|
|
super();
|
|
|
|
super();
|
|
|
|
|
|
|
|
/* TODO need to talk to connor about this as this class should be extending XMLMark
|
|
|
|
targetLat = position.getLatitude();
|
|
|
|
targetLat = position.getLatitude();
|
|
|
|
targetLng = position.getLongitude();
|
|
|
|
targetLng = position.getLongitude();
|
|
|
|
setSourceID(sourceID);
|
|
|
|
setSourceID(sourceID);
|
|
|
|
setName(name);
|
|
|
|
setName(name);*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.sourceID = sourceID;
|
|
|
|
|
|
|
|
this.name = name;
|
|
|
|
this.position = position;
|
|
|
|
this.position = position;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -68,6 +71,14 @@ public class Mark extends Collider, XMLMark {
|
|
|
|
return name;
|
|
|
|
return name;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Returns the source ID of the mark
|
|
|
|
|
|
|
|
* @return the source ID of the mark
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public int getSourceID() {
|
|
|
|
|
|
|
|
return sourceID;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Returns the position of the mark.
|
|
|
|
* Returns the position of the mark.
|
|
|
|
* @return The position of the mark.
|
|
|
|
* @return The position of the mark.
|
|
|
|
|