Merging main features into story 6. App now sends and receives key strokes. #story[1007, 1089]

This commit is contained in:
Joseph Gardner
2017-07-27 12:23:44 +12:00
parent 0352e3310d
commit 0ea7fb8c84
7 changed files with 150 additions and 9 deletions
@@ -193,6 +193,10 @@ public class BinaryMessageDecoder {
AverageWindDecoder awDecoder = new AverageWindDecoder(messageBody);
return awDecoder.getAverageWind();
case BOATACTION:
BoatActionDecoder baDecoder = new BoatActionDecoder(messageBody);
return new BoatAction(baDecoder.getBoatAction());
default:
//System.out.println("Broken Message!");
//throw new InvalidMessageException("Broken message! Did not recognise message type: " + headerMessageType + ".");