mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 06:18:44 +00:00
Added and fixed docstrings
Tags: #docs
This commit is contained in:
@@ -40,6 +40,7 @@ public class App {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add boats to the race
|
||||||
for (int i = 0; i < numberOfBoats; i++) {
|
for (int i = 0; i < numberOfBoats; i++) {
|
||||||
race.addBoat(new Boat(boatNames.get(i), (Double) (teams.get(i).get("velocity"))));
|
race.addBoat(new Boat(boatNames.get(i), (Double) (teams.get(i).get("velocity"))));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,9 @@ public class Race {
|
|||||||
private long startTime = 0;
|
private long startTime = 0;
|
||||||
private double timeScale = 1;
|
private double timeScale = 1;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Race class containing the boats and legs in the race
|
||||||
|
*/
|
||||||
public Race() {
|
public Race() {
|
||||||
this.boats = new ArrayList<Boat>();
|
this.boats = new ArrayList<Boat>();
|
||||||
this.legs = new ArrayList<Leg>();
|
this.legs = new ArrayList<Leg>();
|
||||||
|
|||||||
Reference in New Issue
Block a user