-added binary message decoder test -updated binary message encoder -updated binary message decoder -added enum for message type #story[778, 782]main
parent
655b5787a2
commit
8e79164b69
@ -0,0 +1,18 @@
|
||||
package seng302.Networking;
|
||||
|
||||
/**
|
||||
* Created by hba56 on 21/04/17.
|
||||
*/
|
||||
public enum MessageType {
|
||||
HEARTBEAT(1), RACESTATUS(12), DISPLAYTEXTMESSAGE(20),
|
||||
XMLMESSAGE(26), RACESTARTSTATUS(27), YACHTEVENTCODE(29), YACHTACTIONCODE(31),
|
||||
CHATTERTEXT(36), BOATLOCATION(37), MARKROUNDING(38), COURSEWIND(44), AVGWIND(47);
|
||||
|
||||
private byte value;
|
||||
|
||||
private MessageType(int value) { this.value = (byte)value; }
|
||||
|
||||
public byte getValue() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in new issue