Race events now display the boats heading and direction

- The boats velocity is being read from the config file
- The event text is now being printed when the leg starts #fix

Tags: #story[7] #implement
This commit is contained in:
Michael Rausch
2017-03-08 12:31:31 +13:00
parent 76faa53222
commit ab1445f1c2
8 changed files with 130 additions and 57 deletions
+12
View File
@@ -1,10 +1,14 @@
package seng302;
import java.util.ArrayList;
class Marker{
private String name;
private ArrayList<Boat> boatOrder;
public Marker(String name){
this.name = name;
this.boatOrder = new ArrayList<Boat>();
}
public void setName(String name){
@@ -14,4 +18,12 @@ class Marker{
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()]);
}
}