mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
Arrows now rendered in correct orientation but rounding arc sometimes inverted.
#implement #story[1118]
This commit is contained in:
@@ -263,20 +263,20 @@ public class GameClient {
|
|||||||
if (allXMLReceived()) {
|
if (allXMLReceived()) {
|
||||||
ClientYacht yacht = allBoatsMap.get(roundingData.getBoatId());
|
ClientYacht yacht = allBoatsMap.get(roundingData.getBoatId());
|
||||||
int placing = 1;
|
int placing = 1;
|
||||||
int originalPlacing = yacht.getPlacing();
|
// int originalPlacing = yacht.getPlacing();
|
||||||
for (ClientYacht otherYacht : allBoatsMap.values()) {
|
for (ClientYacht otherYacht : allBoatsMap.values()) {
|
||||||
if (otherYacht != yacht && yacht.getLegNumber() + 1 <= otherYacht.getLegNumber()) {
|
if (otherYacht != yacht && yacht.getLegNumber() + 1 <= otherYacht.getLegNumber()) {
|
||||||
placing++;
|
placing++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (placing != originalPlacing) {
|
// if (placing != originalPlacing) {
|
||||||
yacht.setPlacing(placing);
|
yacht.setPlacing(placing);
|
||||||
for (ClientYacht otherYacht : allBoatsMap.values()) {
|
for (ClientYacht otherYacht : allBoatsMap.values()) {
|
||||||
if (otherYacht.getPlacing() < placing) {
|
if (otherYacht.getPlacing() < placing) {
|
||||||
otherYacht.setPlacing(otherYacht.getPlacing() + 1);
|
otherYacht.setPlacing(otherYacht.getPlacing() + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
// }
|
||||||
yacht.roundMark(
|
yacht.roundMark(
|
||||||
courseData.getCompoundMarks().get(roundingData.getMarkId()),
|
courseData.getCompoundMarks().get(roundingData.getMarkId()),
|
||||||
roundingData.getTimeStamp(),
|
roundingData.getTimeStamp(),
|
||||||
|
|||||||
@@ -765,10 +765,11 @@ public class GameView extends Pane {
|
|||||||
for (Mark mark : compoundMark.getMarks()) {
|
for (Mark mark : compoundMark.getMarks()) {
|
||||||
markerObjects.get(mark).showNextExitArrow();
|
markerObjects.get(mark).showNextExitArrow();
|
||||||
}
|
}
|
||||||
CompoundMark nextMark = course.get(legNumber);
|
if (legNumber < course.size()) {
|
||||||
System.out.println("nextMark = " + nextMark);
|
CompoundMark nextMark = course.get(legNumber);
|
||||||
for (Mark mark : nextMark.getMarks()) {
|
for (Mark mark : nextMark.getMarks()) {
|
||||||
markerObjects.get(mark).showNextEnterArrow();
|
markerObjects.get(mark).showNextEnterArrow();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (legNumber - 2 >= 0) {
|
if (legNumber - 2 >= 0) {
|
||||||
CompoundMark lastMark = course.get(Math.max(0, legNumber - 2));
|
CompoundMark lastMark = course.get(Math.max(0, legNumber - 2));
|
||||||
|
|||||||
Reference in New Issue
Block a user