Added documentation

#document
This commit is contained in:
Calum
2017-07-26 16:03:11 +12:00
parent 8fc00fd750
commit 7392bdb80d
3 changed files with 7 additions and 0 deletions
@@ -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,