* Added method to set release date with natural month.

This commit is contained in:
LevelX2 2016-10-13 02:06:51 +02:00
parent 8765f6ec45
commit c5bb536b46
185 changed files with 278 additions and 349 deletions

View file

@ -31,6 +31,7 @@ import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.EnumMap;
import java.util.GregorianCalendar;
import java.util.Iterator;
import java.util.List;
import mage.cards.repository.CardCriteria;
@ -298,6 +299,11 @@ public abstract class ExpansionSet implements Serializable {
}
}
public static Date buildDate(int year, int month, int day) {
// The month starts with 0 = jan ... dec = 11
return new GregorianCalendar(year, month - 1, day).getTime();
}
/**
* Can be overwritten if sometimes special cards will be generated instead
* of common slots