(final CardEdition edition)
| 28 | |
| 29 | public class FatPack extends BoxedProduct { |
| 30 | public static FatPack fromSet(final CardEdition edition) { |
| 31 | int boosters = edition.getFatPackCount(); |
| 32 | if (boosters <= 0) { return null; } |
| 33 | |
| 34 | FatPack.Template d = new Template(edition); |
| 35 | if (null == StaticData.instance().getBoosters().get(d.getEdition())) { return null; } |
| 36 | return new FatPack(edition.getName(), d, d.cntBoosters); |
| 37 | } |
| 38 | |
| 39 | private final FatPack.Template fpData; |
| 40 |
no test coverage detected