Implemented a more reliable way for keystroke input and added boat action packet type so stream parser is able to read and decode the message appropriately.

#story[988] #pair[hyi25, zyt10]
This commit is contained in:
Zhi You Tan
2017-07-14 18:23:07 +12:00
parent 2809d0d832
commit 355f8543f5
5 changed files with 13 additions and 21 deletions
@@ -79,8 +79,8 @@ public class StartScreenController {
@FXML
public void connectButtonPressed() {
// TODO: 10/07/17 wmu16 - Finish function
String ipAddress = ipTextField.getText().trim();
StreamReceiver sr = new StreamReceiver(ipAddress, GameServerThread.PORT_NUMBER, "HostStream");
String ipAddress = ipTextField.getText().trim().toLowerCase();
StreamReceiver sr = new StreamReceiver(ipAddress, 4950, "HostStream");
sr.start();
}
}