Started implementing wind oscillation. #story[1187]
This commit is contained in:
@@ -5,6 +5,7 @@ import mock.exceptions.EventConstructionException;
|
||||
import mock.model.*;
|
||||
import mock.model.commandFactory.CompositeCommand;
|
||||
import mock.model.wind.RandomWindGenerator;
|
||||
import mock.model.wind.ShiftingWindGenerator;
|
||||
import mock.model.wind.WindGenerator;
|
||||
import mock.xml.RaceXMLCreator;
|
||||
import network.Messages.LatestMessages;
|
||||
@@ -124,13 +125,17 @@ public class Event {
|
||||
this.latestMessages = new LatestMessages();
|
||||
|
||||
//Create and start race.
|
||||
WindGenerator windGenerator = new RandomWindGenerator(
|
||||
// WindGenerator windGenerator = new RandomWindGenerator(
|
||||
// Bearing.fromDegrees(225),
|
||||
// Bearing.fromDegrees(215),
|
||||
// Bearing.fromDegrees(235),
|
||||
// 12d,
|
||||
// 8d,
|
||||
// 16d );
|
||||
WindGenerator windGenerator = new ShiftingWindGenerator(
|
||||
Bearing.fromDegrees(225),
|
||||
Bearing.fromDegrees(215),
|
||||
Bearing.fromDegrees(235),
|
||||
12d,
|
||||
8d,
|
||||
16d );
|
||||
12
|
||||
);
|
||||
RaceLogic newRace = new RaceLogic(
|
||||
new MockRace(
|
||||
boatDataSource,
|
||||
|
||||
Reference in New Issue
Block a user