mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 06:18:44 +00:00
Deleted the old Mark and GateMark files
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
package seng302.models;
|
||||
|
||||
/**
|
||||
* Created by ptg19 on 16/03/17.
|
||||
*/
|
||||
public class GateMark {
|
||||
private double lat;
|
||||
private double lon;
|
||||
private Mark mark1;
|
||||
private Mark mark2;
|
||||
private String name;
|
||||
|
||||
public GateMark(String name, Mark mark1, Mark mark2, double lat, double lon){
|
||||
this.lat = lat;
|
||||
this.lon = lon;
|
||||
this.mark1 = mark1;
|
||||
this.mark2 = mark2;
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
@@ -1,59 +0,0 @@
|
||||
package seng302.models;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* Represents the marker at the beginning of a leg
|
||||
*/
|
||||
public class Mark {
|
||||
private double lat;
|
||||
private double lon;
|
||||
private String name;
|
||||
private ArrayList<Boat> boatOrder;
|
||||
|
||||
/**
|
||||
* Represents a marker
|
||||
*
|
||||
* @param name, the name of the marker*
|
||||
* @param lat, the latitude of the marker
|
||||
* @param lon, the longitude of the marker
|
||||
*/
|
||||
public Mark(String name, double lat, double lon){
|
||||
this.name = name;
|
||||
this.lat = lat;
|
||||
this.lon = lon;
|
||||
this.boatOrder = new ArrayList<Boat>();
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents the marker at the beginning of a leg
|
||||
*
|
||||
* @param name, the name of the marker
|
||||
*/
|
||||
public Mark(String name){
|
||||
this.name = name;
|
||||
this.lat = 0;
|
||||
this.lon = 0;
|
||||
this.boatOrder = new ArrayList<Boat>();
|
||||
}
|
||||
|
||||
public void setName(String name){
|
||||
this.name = name;
|
||||
}
|
||||
public String getName(){
|
||||
return this.name;
|
||||
}
|
||||
public void addBoat(Boat boat){
|
||||
this.boatOrder.add(boat);
|
||||
}
|
||||
public Boat[] getBoats(){
|
||||
return this.boatOrder.toArray(new Boat[this.boatOrder.size()]);
|
||||
}
|
||||
public double getLatitude(){
|
||||
return this.lat;
|
||||
}
|
||||
|
||||
public double getLongitude(){
|
||||
return this.lon;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user