Started working on the boat selection screen.

Customised the boat customisation UI to contain it. Need to have another boat to test whether we can switch boats and also if the messages get sent correctly.

#story[1274]
This commit is contained in:
Kusal Ekanayake
2017-09-20 16:36:27 +12:00
parent c39582de5c
commit 410d765745
7 changed files with 119 additions and 30 deletions
@@ -702,6 +702,9 @@ public class GameState implements Runnable {
int blue = customizeData[2] & 0xFF;
Color yachtColor = Color.rgb(red, green, blue);
playerYacht.setBoatColor(yachtColor);
} else if (requestType.equals(CustomizeRequestType.SHAPE)) {
String type = new String(customizeData);
playerYacht.setBoatType(type);
}
}