mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
Added documentation
#document
This commit is contained in:
@@ -330,6 +330,7 @@ public class CanvasController {
|
|||||||
boatGroups.add(boatGroup);
|
boatGroups.add(boatGroup);
|
||||||
annotations.getChildren().add(boatGroup.getAnnotations());
|
annotations.getChildren().add(boatGroup.getAnnotations());
|
||||||
} else {
|
} else {
|
||||||
|
//Move annotations and boat to bottom of group keeping player ontop.
|
||||||
if (boatGroups.size() > 0) {
|
if (boatGroups.size() > 0) {
|
||||||
boatGroups.add(0, boatGroup);
|
boatGroups.add(0, boatGroup);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -144,6 +144,9 @@ public class BoatAnnotations extends Group{
|
|||||||
return totalVisible;
|
return totalVisible;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets these annotations to show more detailed info.
|
||||||
|
*/
|
||||||
public void setAsPlayer () {
|
public void setAsPlayer () {
|
||||||
isPlayer = true;
|
isPlayer = true;
|
||||||
velocityObject.setVisible(true);
|
velocityObject.setVisible(true);
|
||||||
|
|||||||
@@ -352,6 +352,9 @@ public class BoatGroup extends Group {
|
|||||||
return boat.toString();
|
return boat.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets this boat to appear highlighted
|
||||||
|
*/
|
||||||
public void setAsPlayer() {
|
public void setAsPlayer() {
|
||||||
boatPoly.getPoints().setAll(
|
boatPoly.getPoints().setAll(
|
||||||
-BOAT_WIDTH / 1.75, BOAT_HEIGHT / 1.75,
|
-BOAT_WIDTH / 1.75, BOAT_HEIGHT / 1.75,
|
||||||
|
|||||||
Reference in New Issue
Block a user