mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
Reworking card types in preparation for implementing Grist, the Hunger Tide (#7899)
Co-authored-by: Oleg Agafonov <jaydi85@gmail.com>
This commit is contained in:
parent
07e1dff10c
commit
572104b8fc
1159 changed files with 2704 additions and 2203 deletions
|
|
@ -9,6 +9,7 @@ import java.awt.*;
|
|||
import java.awt.geom.Rectangle2D;
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
|
|
@ -16,7 +17,7 @@ import java.util.List;
|
|||
*/
|
||||
public class ModernSplitCardRenderer extends ModernCardRenderer {
|
||||
|
||||
private class HalfCardProps {
|
||||
private static class HalfCardProps {
|
||||
|
||||
int x, y, w, h, cw, ch;
|
||||
|
||||
|
|
@ -28,11 +29,7 @@ public class ModernSplitCardRenderer extends ModernCardRenderer {
|
|||
List<TextboxRule> keywords = new ArrayList<>();
|
||||
}
|
||||
|
||||
private static final ArrayList<CardType> ONLY_LAND_TYPE = new ArrayList<CardType>() {
|
||||
{
|
||||
add(CardType.LAND);
|
||||
}
|
||||
};
|
||||
private static final List<CardType> ONLY_LAND_TYPE = Arrays.asList(CardType.LAND);
|
||||
|
||||
// Right and left halves of the card content
|
||||
private HalfCardProps rightHalf = new HalfCardProps();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue