Spun off Locatable interface to make collision code more reusable
#story[1100]
This commit is contained in:
@@ -2,10 +2,8 @@ package mock.model;
|
||||
|
||||
import network.Messages.*;
|
||||
import network.Messages.Enums.BoatLocationDeviceEnum;
|
||||
import network.Utils.AC35UnitConverter;
|
||||
import shared.model.Bearing;
|
||||
import shared.model.CompoundMark;
|
||||
import shared.model.Constants;
|
||||
import shared.model.Mark;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -127,8 +125,8 @@ public class RaceServer {
|
||||
|
||||
BoatLocation boatLocation = new BoatLocation(
|
||||
boat.getSourceID(),
|
||||
boat.getCurrentPosition().getLatitude(),
|
||||
boat.getCurrentPosition().getLongitude(),
|
||||
boat.getPosition().getLatitude(),
|
||||
boat.getPosition().getLongitude(),
|
||||
this.boatLocationSequenceNumber,
|
||||
BoatLocationDeviceEnum.RacingYacht,
|
||||
boat.getBearing(),
|
||||
|
||||
Reference in New Issue
Block a user