Created a new course parser to parse race xml file specified in AC35 spec.

#story[828]
This commit is contained in:
Haoming Yin
2017-04-25 00:56:44 +12:00
parent bc31987f96
commit 3bdc6ce5cc
@@ -4,6 +4,33 @@ package seng302.models.mark;
* To represent two types of mark * To represent two types of mark
* Created by Haoming Yin (hyi25) on 17/3/17. * Created by Haoming Yin (hyi25) on 17/3/17.
*/ */
public enum MarkType { public enum MarkType {
SINGLE_MARK, GATE_MARK
UNKNOWN(0),
ROUNDING_MARK(1),
GATE_MARK(2),
// above mark types are from AC35 spec.
// more specific types for gate mark
WINDWARD(201),
LEEWARD(202),
START(203),
FINISH(204),
// single_mark is from old team-13 code base, for compatibility, it has not
// been removed yet
SINGLE_MARK(5);
private int type;
MarkType(int markType) {
this.type = markType;
}
public int getType() {
return this.type;
}
} }