mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 06:18:44 +00:00
6874f288ee
Tags: #story[29]
27 lines
519 B
Java
27 lines
519 B
Java
package seng302.server.messages;
|
|
|
|
/**
|
|
* The current status of the race
|
|
*/
|
|
public enum RaceStatus {
|
|
NOTACTIVE(0),
|
|
WARNING(1), // Between 3:00 and 1:00 before start
|
|
PREPARATORY(2), // Less than 1:00 before start
|
|
STARTED(3),
|
|
ABANDONED(6),
|
|
POSTPONED(7),
|
|
TERMINATED(8),
|
|
RACE_START_TIME_NOT_SET(9),
|
|
PRESTART(10); // More than 3:00 before start
|
|
|
|
private int code;
|
|
|
|
RaceStatus(int code){
|
|
this.code = code;
|
|
}
|
|
|
|
public int getCode(){
|
|
return this.code;
|
|
}
|
|
}
|