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
@@ -0,0 +1,20 @@
package network.MessageDecoders;
import network.Messages.Enums.BoatActionEnum;
import java.util.Arrays;
public class BoatActionDecoder {
byte byteBoatAction;
BoatActionEnum boatAction;
public BoatActionDecoder(byte[] encodedBoatAction) {
byteBoatAction = encodedBoatAction[0];
boatAction = BoatActionEnum.fromByte(byteBoatAction);
}
public BoatActionEnum getBoatAction() {
return boatAction;
}
}