Boats now start the race with sails out. #story[1098]
This commit is contained in:
@@ -319,7 +319,7 @@ public class MockRace extends Race {
|
||||
//Checks if the current boat has finished the race or not.
|
||||
boolean finish = this.isLastLeg(boat.getCurrentLeg());
|
||||
|
||||
if (!finish && totalElapsedMilliseconds >= updatePeriodMilliseconds && !boat.isSailsOut()) {
|
||||
if (!finish && totalElapsedMilliseconds >= updatePeriodMilliseconds && boat.isSailsOut()) {
|
||||
|
||||
// if (boat.getCurrentSpeed() == 0) {
|
||||
// newOptimalVMG(boat);
|
||||
|
||||
@@ -93,7 +93,7 @@ public class Boat {
|
||||
/**
|
||||
* The state of the boats sails. True if sails are out.
|
||||
*/
|
||||
private boolean sailsOut = false;
|
||||
private boolean sailsOut = true;
|
||||
|
||||
/**
|
||||
* Constructs a boat object with a given sourceID, name, country/team abbreviation, and polars table.
|
||||
|
||||
@@ -6,7 +6,7 @@ package visualiser.model;
|
||||
public class ThisBoat {
|
||||
// TODO Initialise sourceID to the sourceID given by the network
|
||||
private int sourceID = 125;
|
||||
private boolean sailsOut = false;
|
||||
private boolean sailsOut = true;
|
||||
private static ThisBoat instance = new ThisBoat();
|
||||
|
||||
private ThisBoat(){}
|
||||
|
||||
Reference in New Issue
Block a user