Removed redunant calls in VisualiserRaceState.initialiseBoats().

Slightly refactored ResizableRaceCanvas - removed a redundant drawPoint() function, functions which alter the gc stroke call save/restore.
Text is drawn black, at 20pts.
The drawBoats() function: instead of drawing everything for each boat, one boat at a time, it draws the track points for all boats, then wake for all boats, etc..., to have better layering.
issue #18
This commit is contained in:
fjc40
2017-08-16 18:10:30 +12:00
parent f1e41d5d8f
commit 20055b1883
3 changed files with 106 additions and 54 deletions
@@ -53,7 +53,7 @@ public class VisualiserBoat extends Boat {
/**
* Scalar used to scale the boat's wake.
*/
private static final double wakeScale = 20;
private static final double wakeScale = 25;
/**
* If true then this boat has been allocated to the client.