Turned handling into a multiplier.

#story[1274]
This commit is contained in:
Kusal Ekanayake
2017-09-22 17:42:32 +12:00
parent 9f64b2380d
commit 52dc7a956d
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -24,7 +24,7 @@ public class ServerYacht {
//Boat info
private String boatType;
private Double turnStep = 10.0;
private Double turnStep = 5.0;
private Double maxSpeedMultiplier = 1.0;
private Double acceleration = 1.0;
private Integer sourceId;
@@ -427,7 +427,7 @@ public class ServerYacht {
for (BoatMeshType boatMesh: BoatMeshType.values()) {
if (Objects.equals(boatType, boatMesh.toString())) {
boatMeshType = boatMesh;
turnStep = boatMeshType.turnStep;
turnStep = turnStep * boatMeshType.turnStep;
maxSpeedMultiplier = boatMeshType.maxSpeedMultiplier;
acceleration = boatMeshType.accelerationMultiplier;
}