You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
771 B
30 lines
771 B
package mock.model.commandFactory;
|
|
|
|
import mock.model.MockBoat;
|
|
import mock.model.MockRace;
|
|
|
|
/**
|
|
* Created by David on 2/08/2017.
|
|
*/
|
|
public class VMGCommand implements Command {
|
|
private MockRace race;
|
|
private MockBoat boat;
|
|
|
|
public VMGCommand(MockRace race, MockBoat boat) {
|
|
this.race = race;
|
|
this.boat = boat;
|
|
}
|
|
|
|
//The refactoring of MockRace will require changes to be made
|
|
@Override
|
|
public void execute() {
|
|
/*VMG newVMG = boat.getPolars().calculateVMG(
|
|
race.getWindDirection(),
|
|
race.getWindSpeed(),
|
|
boat.calculateBearingToNextMarker(),
|
|
Bearing.fromDegrees(0d),
|
|
Bearing.fromDegrees(359.99999d));
|
|
boat.setVMG(newVMG);*/
|
|
}
|
|
}
|