mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
Merged develop into issue10 branch. Fixed merge issues and completed manual testing before merge request.
#story[923]
This commit is contained in:
@@ -189,8 +189,8 @@ public class CanvasController {
|
|||||||
boatGroup.move();
|
boatGroup.move();
|
||||||
}
|
}
|
||||||
for (MarkGroup markGroup : markGroups) {
|
for (MarkGroup markGroup : markGroups) {
|
||||||
for (int id : markGroup.getRaceIds()) {
|
for (Long id : markGroup.getRaceIds()) {
|
||||||
if (StreamParser.boatPositions.containsKey(id)) {
|
if (StreamParser.markPositions.containsKey(id)) {
|
||||||
updateMarkGroup(id, markGroup);
|
updateMarkGroup(id, markGroup);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -224,8 +224,8 @@ public class CanvasController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void updateMarkGroup (int raceId, MarkGroup markGroup) {
|
void updateMarkGroup (long raceId, MarkGroup markGroup) {
|
||||||
PriorityBlockingQueue<BoatPositionPacket> movementQueue = StreamParser.boatPositions.get(raceId);
|
PriorityBlockingQueue<BoatPositionPacket> movementQueue = StreamParser.markPositions.get(raceId);
|
||||||
if (movementQueue.size() > 0){
|
if (movementQueue.size() > 0){
|
||||||
try {
|
try {
|
||||||
BoatPositionPacket positionPacket = movementQueue.take();
|
BoatPositionPacket positionPacket = movementQueue.take();
|
||||||
@@ -256,7 +256,6 @@ public class CanvasController {
|
|||||||
|
|
||||||
private void initializeMarks() {
|
private void initializeMarks() {
|
||||||
ArrayList<Mark> allMarks = StreamParser.getXmlObject().getRaceXML().getCompoundMarks();
|
ArrayList<Mark> allMarks = StreamParser.getXmlObject().getRaceXML().getCompoundMarks();
|
||||||
System.out.println(allMarks);
|
|
||||||
for (Mark mark : allMarks) {
|
for (Mark mark : allMarks) {
|
||||||
if (mark.getMarkType() == MarkType.SINGLE_MARK) {
|
if (mark.getMarkType() == MarkType.SINGLE_MARK) {
|
||||||
SingleMark sMark = (SingleMark) mark;
|
SingleMark sMark = (SingleMark) mark;
|
||||||
|
|||||||
Reference in New Issue
Block a user