mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
Started merging received packets from the sample stream and reading lats and lons to move boats from them.
#story[820]
This commit is contained in:
@@ -12,6 +12,7 @@ import javafx.scene.transform.Translate;
|
||||
* Created by CJIRWIN on 25/04/2017.
|
||||
*/
|
||||
public class BoatGroup extends Group{
|
||||
|
||||
private static final double TEAMNAME_X_OFFSET = 15d;
|
||||
private static final double TEAMNAME_Y_OFFSET = -20d;
|
||||
private static final double VELOCITY_X_OFFSET = 15d;
|
||||
@@ -98,7 +99,8 @@ public class BoatGroup extends Group{
|
||||
* @param y The Y coordinate to move the boat to
|
||||
*/
|
||||
public void moveBoatTo(Double x, Double y, Double rotation) {
|
||||
super.relocate(x, y);
|
||||
super.setLayoutX(x);
|
||||
super.setLayoutY(y);
|
||||
currentRotation = 0;
|
||||
rotateBoat(rotation);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user