Added Boat location messages to the mock streaming data interface

- Added static methods to convert between binary packed lat/longs and floating point numbers

Tags: #story[829]
This commit is contained in:
Michael Rausch
2017-04-26 22:38:39 +12:00
parent 1f8f1f0f86
commit bc31987f96
6 changed files with 214 additions and 1 deletions
@@ -0,0 +1,20 @@
package seng302.server.messages;
/**
* The side the boat rounded the mark
*/
public enum RoundingSide {
UNKNOWN(0),
PORT(1),
STARBOARD(2);
private long code;
RoundingSide(long code) {
this.code = code;
}
public long getCode(){
return code;
}
}