Got the boat's to track and center correctly.

As well as allowing selecting different boats to track them, doesn't work as intuitively as I would like but will need to sort out a boat selection feature first made specifically for the selection of only one boat.

 #story[1121]
This commit is contained in:
Kusal Ekanayake
2017-08-14 17:27:14 +12:00
parent 4dc6b2af2b
commit fab5f9229f
3 changed files with 33 additions and 13 deletions
@@ -222,7 +222,6 @@ public class GameClient {
* Updates the position of a boat. Boat and position are given in the provided data.
*/
private void updatePosition(PositionUpdateData positionData) {
raceView.getGameView().trackBoat();
if (positionData.getType() == DeviceType.YACHT_TYPE) {
if (allXMLReceived() && allBoatsMap.containsKey(positionData.getDeviceId())) {
Yacht yacht = allBoatsMap.get(positionData.getDeviceId());
@@ -230,6 +229,7 @@ public class GameClient {
positionData.getLon(), positionData.getHeading(),
positionData.getGroundSpeed());
}
raceView.getGameView().trackBoat();
} else if (positionData.getType() == DeviceType.MARK_TYPE) {
//CompoundMark mark = courseData.getCompoundMarks().get(positionData.getDeviceId());
}