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