mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
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:
@@ -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()]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user