Added option to select time limit (also none) on match or tournament creation.

This commit is contained in:
LevelX2 2013-06-21 21:34:06 +02:00
parent a573d2c026
commit 738efcc47f
15 changed files with 367 additions and 214 deletions

View file

@ -0,0 +1,37 @@
package mage.constants;
/**
*
* @author LevelX2
*/
public enum MatchTimeLimit {
NONE(0,"None"),
MIN__20(1200, "20 Minutes"),
MIN__30(1800, "30 Minutes"),
MIN__40(2400, "40 Minutes"),
MIN__50(3000, "50 Minutes"),
MIN__60(3600, "60 Minutes"),
MIN__90(5400, "90 Minutes"),
MIN_120(7200, "120 Minutes");
private int matchSeconds;
private String name;
MatchTimeLimit(int matchSeconds, String name) {
this.matchSeconds = matchSeconds;
this.name = name;
}
public int getTimeLimit() {
return matchSeconds;
}
public String getName() {
return name;
}
@Override
public String toString() {
return name;
}
}