remove unused import statements and sort.
parent
3e42329161
commit
0c1a7d5ae8
|
@ -1,15 +1,13 @@
|
|||
package magic.ai;
|
||||
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicGameLog;
|
||||
import magic.exception.GameException;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.Map;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicGameLog;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.event.MagicEvent;
|
||||
|
||||
/*
|
||||
* MTD(f) algorithm by Aske Plaat
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
package magic.model;
|
||||
|
||||
import magic.utility.MagicSystem;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Iterator;
|
||||
import java.util.ListIterator;
|
||||
import magic.utility.MagicSystem;
|
||||
|
||||
public class MagicLogBook {
|
||||
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
package magic.model.action;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Set;
|
||||
|
||||
import magic.model.MagicAbilityList;
|
||||
import magic.model.MagicColor;
|
||||
import magic.model.MagicGame;
|
||||
|
|
|
@ -1,13 +1,9 @@
|
|||
package magic.model.action;
|
||||
|
||||
import magic.model.MagicCard;
|
||||
import magic.model.MagicCardDefinition;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicObject;
|
||||
import magic.model.MagicPayedCost;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicLocationType;
|
||||
import magic.model.stack.MagicCardOnStack;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.event.MagicPutCardOnStackEvent;
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
package magic.model.action;
|
||||
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.stack.MagicItemOnStack;
|
||||
|
||||
public class DequeueTriggerAction extends MagicAction {
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package magic.model.action;
|
||||
|
||||
import magic.ai.ArtificialScoringSystem;
|
||||
import magic.model.MagicCard;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicLocationType;
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
package magic.model.action;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicLocationType;
|
||||
import magic.model.MagicObject;
|
||||
import magic.model.stack.MagicCardOnStack;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.LinkedList;
|
||||
|
||||
public class EnterAsCopyAction extends MagicAction {
|
||||
|
||||
private final MagicCardOnStack cardOnStack;
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
package magic.model.action;
|
||||
|
||||
import magic.model.MagicCard;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicPayedCost;
|
||||
import magic.model.stack.MagicCardOnStack;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import magic.model.MagicCard;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPayedCost;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.stack.MagicCardOnStack;
|
||||
|
||||
public class PlayCardAction extends MagicAction {
|
||||
|
||||
|
|
|
@ -1,21 +1,19 @@
|
|||
package magic.model.action;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import magic.ai.ArtificialScoringSystem;
|
||||
import magic.model.MagicPayedCost;
|
||||
import magic.model.MagicCardDefinition;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicLocationType;
|
||||
import magic.model.MagicObject;
|
||||
import magic.model.MagicPayedCost;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicPermanentState;
|
||||
import magic.model.stack.MagicCardOnStack;
|
||||
import magic.model.trigger.MagicTrigger;
|
||||
import magic.model.trigger.MagicTriggerType;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public class PlayCardFromStackAction extends MagicAction {
|
||||
|
||||
private final MagicCardOnStack cardOnStack;
|
||||
|
|
|
@ -1,17 +1,15 @@
|
|||
package magic.model.action;
|
||||
|
||||
import magic.model.MagicCard;
|
||||
import magic.model.MagicCardDefinition;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicObject;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicPayedCost;
|
||||
import magic.model.stack.MagicCardOnStack;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import magic.model.MagicCard;
|
||||
import magic.model.MagicCardDefinition;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicObject;
|
||||
import magic.model.MagicPayedCost;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.stack.MagicCardOnStack;
|
||||
|
||||
public class PlayTokenAction extends MagicAction {
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@ package magic.model.action;
|
|||
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.stack.MagicTriggerOnStack;
|
||||
|
||||
public class PutStateTriggerOnStackAction extends MagicAction {
|
||||
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
package magic.model.action;
|
||||
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicCard;
|
||||
import magic.model.MagicCardList;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicLocationType;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.HashSet;
|
||||
import magic.model.MagicCard;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicLocationType;
|
||||
import magic.model.MagicPlayer;
|
||||
|
||||
public class ShuffleCardsIntoLibraryAction extends MagicAction {
|
||||
|
||||
|
|
|
@ -1,26 +1,17 @@
|
|||
package magic.model.choice;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import magic.exception.UndoClickedException;
|
||||
import magic.model.IUIGameController;
|
||||
import magic.model.MagicCard;
|
||||
import magic.model.MagicCardDefinition;
|
||||
import magic.model.MagicCostManaType;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicManaCost;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.MagicType;
|
||||
import magic.model.condition.MagicCondition;
|
||||
import magic.model.MagicPayedCost;
|
||||
import magic.model.action.PlayCardAction;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.phase.MagicMainPhase;
|
||||
import magic.exception.UndoClickedException;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import magic.model.IUIGameController;
|
||||
|
||||
public class MagicMulliganChoice extends MagicChoice {
|
||||
|
||||
|
|
|
@ -1,15 +1,14 @@
|
|||
package magic.model.choice;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import magic.data.GeneralConfig;
|
||||
import magic.exception.UndoClickedException;
|
||||
import magic.model.IUIGameController;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.exception.UndoClickedException;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import magic.model.IUIGameController;
|
||||
|
||||
public class MagicSimpleMayChoice extends MagicChoice {
|
||||
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
package magic.model.condition;
|
||||
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.event.MagicConditionEvent;
|
||||
import magic.model.event.MagicEvent;
|
||||
|
||||
public class MagicArtificialCondition extends MagicCondition {
|
||||
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
package magic.model.event;
|
||||
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicSource;
|
||||
|
||||
public class MagicActivationHints {
|
||||
|
||||
/** timing */
|
||||
|
|
|
@ -1,23 +1,21 @@
|
|||
package magic.model.event;
|
||||
|
||||
import java.util.Set;
|
||||
import magic.model.MagicAbility;
|
||||
import magic.model.MagicCounterType;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicCounterType;
|
||||
import magic.model.MagicPowerToughness;
|
||||
import magic.model.MagicAbility;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.MagicSubType;
|
||||
import magic.model.MagicType;
|
||||
import magic.model.mstatic.MagicStatic;
|
||||
import magic.model.mstatic.MagicLayer;
|
||||
import magic.model.choice.MagicTargetChoice;
|
||||
import magic.model.action.ChangeCountersAction;
|
||||
import magic.model.action.MagicPermanentAction;
|
||||
import magic.model.action.AddStaticAction;
|
||||
import magic.model.action.ChangeCountersAction;
|
||||
import magic.model.action.GainAbilityAction;
|
||||
|
||||
import java.util.Set;
|
||||
import magic.model.choice.MagicTargetChoice;
|
||||
import magic.model.mstatic.MagicLayer;
|
||||
import magic.model.mstatic.MagicStatic;
|
||||
|
||||
public class MagicAwakenEvent extends MagicEvent {
|
||||
final private static MagicTargetChoice tchoice = new MagicTargetChoice("target land you control");
|
||||
|
|
|
@ -3,8 +3,6 @@ package magic.model.event;
|
|||
import magic.model.MagicCounterType;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.action.ChangeCountersAction;
|
||||
import magic.model.choice.MagicTargetChoice;
|
||||
import magic.model.target.MagicPTTargetFilter;
|
||||
|
|
|
@ -2,9 +2,7 @@ package magic.model.event;
|
|||
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.MagicManaCost;
|
||||
import magic.model.action.TapAction;
|
||||
import magic.model.choice.MagicTargetChoice;
|
||||
import magic.model.target.MagicTapTargetPicker;
|
||||
|
|
|
@ -1,17 +1,15 @@
|
|||
package magic.model.event;
|
||||
|
||||
import magic.model.MagicGame;
|
||||
import java.util.Arrays;
|
||||
import magic.model.MagicCard;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPayedCost;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.MagicManaCost;
|
||||
import magic.model.MagicPayedCost;
|
||||
import magic.model.action.PutItemOnStackAction;
|
||||
import magic.model.stack.MagicAbilityOnStack;
|
||||
import magic.model.trigger.MagicTrigger;
|
||||
import magic.model.trigger.MagicTriggerType;
|
||||
import magic.model.action.PutItemOnStackAction;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
public class MagicCyclingActivation extends MagicCardAbilityActivation {
|
||||
|
||||
|
|
|
@ -1,16 +1,14 @@
|
|||
package magic.model.event;
|
||||
|
||||
import java.util.Arrays;
|
||||
import magic.model.MagicCard;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicLocationType;
|
||||
import magic.model.MagicManaCost;
|
||||
import magic.model.MagicPayedCost;
|
||||
import magic.model.stack.MagicCardOnStack;
|
||||
import magic.model.action.MagicPlayMod;
|
||||
import magic.model.action.PlayCardFromStackAction;
|
||||
import magic.model.condition.MagicCondition;
|
||||
|
||||
import java.util.Arrays;
|
||||
import magic.model.stack.MagicCardOnStack;
|
||||
|
||||
public class MagicDashActivation extends MagicHandCastActivation {
|
||||
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
package magic.model.event;
|
||||
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.MagicManaCost;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.action.SacrificeAction;
|
||||
import magic.model.choice.MagicTargetChoice;
|
||||
import magic.model.target.MagicSacrificeTargetPicker;
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
package magic.model.event;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import magic.model.MagicCard;
|
||||
import magic.model.MagicCardDefinition;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicLocationType;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.action.CastCardAction;
|
||||
import magic.model.stack.MagicCardOnStack;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
public class MagicFlashbackActivation extends MagicGraveyardCastActivation {
|
||||
|
||||
|
|
|
@ -1,16 +1,18 @@
|
|||
package magic.model.event;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import magic.model.MagicAmount;
|
||||
import magic.model.MagicCard;
|
||||
import magic.model.MagicCardDefinition;
|
||||
import magic.model.MagicChangeCardDefinition;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicLocationType;
|
||||
import magic.model.MagicPayedCost;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicManaCost;
|
||||
import magic.model.MagicCostManaType;
|
||||
import magic.model.MagicAmount;
|
||||
import magic.model.MagicPayedCost;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.action.PlayCardAction;
|
||||
import magic.model.action.PutItemOnStackAction;
|
||||
import magic.model.action.RemoveCardAction;
|
||||
|
@ -19,10 +21,6 @@ import magic.model.condition.MagicCondition;
|
|||
import magic.model.stack.MagicCardOnStack;
|
||||
import magic.model.target.MagicTargetFilter;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Collections;
|
||||
|
||||
public class MagicHandCastActivation extends MagicActivation<MagicCard> implements MagicChangeCardDefinition, MagicCardEvent {
|
||||
|
||||
public static final MagicCondition[] CARD_CONDITION = new MagicCondition[]{
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
package magic.model.event;
|
||||
|
||||
import magic.model.MagicCard;
|
||||
import magic.model.MagicCardList;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.MagicLocationType;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.action.DrawAction;
|
||||
import magic.model.action.ShuffleCardsIntoLibraryAction;
|
||||
import magic.model.choice.MagicMulliganChoice;
|
||||
|
|
|
@ -5,7 +5,6 @@ import magic.model.MagicGame;
|
|||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.action.ChangeCountersAction;
|
||||
import magic.model.action.MagicPermanentAction;
|
||||
import magic.model.choice.MagicTargetChoice;
|
||||
import magic.model.target.MagicPumpTargetPicker;
|
||||
|
||||
|
|
|
@ -1,20 +1,18 @@
|
|||
package magic.model.event;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import magic.model.MagicCard;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicLocationType;
|
||||
import magic.model.MagicMessage;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.action.MagicCardAction;
|
||||
import magic.model.action.MagicPermanentAction;
|
||||
import magic.model.action.ReturnCardAction;
|
||||
import magic.model.choice.MagicChoice;
|
||||
import magic.model.target.MagicGraveyardTargetPicker;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import magic.model.MagicMessage;
|
||||
|
||||
public class MagicPutOntoBattlefieldEvent extends MagicEvent {
|
||||
|
||||
public MagicPutOntoBattlefieldEvent(final MagicEvent event, final MagicChoice choice, final List<? extends MagicPermanentAction> mods) {
|
||||
|
|
|
@ -4,7 +4,6 @@ import magic.model.MagicDamage;
|
|||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.action.DealDamageAction;
|
||||
import magic.model.action.MagicPermanentAction;
|
||||
import magic.model.choice.MagicMayChoice;
|
||||
import magic.model.choice.MagicTargetChoice;
|
||||
|
||||
|
|
|
@ -1,21 +1,19 @@
|
|||
package magic.model.event;
|
||||
|
||||
import magic.model.MagicCard;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.action.MagicCardAction;
|
||||
import magic.model.action.ReturnCardAction;
|
||||
import magic.model.action.ShuffleLibraryAction;
|
||||
import magic.model.action.AIRevealAction;
|
||||
import magic.model.action.MagicPermanentAction;
|
||||
import magic.model.choice.MagicChoice;
|
||||
import magic.model.choice.MagicCardChoiceResult;
|
||||
import magic.model.target.MagicGraveyardTargetPicker;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import magic.model.MagicCard;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicMessage;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.action.AIRevealAction;
|
||||
import magic.model.action.MagicPermanentAction;
|
||||
import magic.model.action.ReturnCardAction;
|
||||
import magic.model.action.ShuffleLibraryAction;
|
||||
import magic.model.choice.MagicCardChoiceResult;
|
||||
import magic.model.choice.MagicChoice;
|
||||
import magic.model.target.MagicGraveyardTargetPicker;
|
||||
|
||||
public class MagicSearchOntoBattlefieldEvent extends MagicEvent {
|
||||
public MagicSearchOntoBattlefieldEvent(final MagicEvent event, final MagicChoice choice, final MagicPermanentAction... mods) {
|
||||
|
|
|
@ -6,12 +6,11 @@ import magic.model.MagicLocationType;
|
|||
import magic.model.MagicMessage;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.action.MagicCardAction;
|
||||
import magic.model.action.AIRevealAction;
|
||||
import magic.model.action.ShiftCardAction;
|
||||
import magic.model.action.ShuffleLibraryAction;
|
||||
import magic.model.action.AIRevealAction;
|
||||
import magic.model.choice.MagicChoice;
|
||||
import magic.model.choice.MagicCardChoiceResult;
|
||||
import magic.model.choice.MagicChoice;
|
||||
import magic.model.target.MagicGraveyardTargetPicker;
|
||||
|
||||
public class MagicSearchToLocationEvent extends MagicEvent {
|
||||
|
|
|
@ -1,17 +1,10 @@
|
|||
|
||||
package magic.model.event;
|
||||
|
||||
import magic.model.MagicCard;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicManaCost;
|
||||
import magic.model.MagicPayedCost;
|
||||
import magic.model.MagicCardDefinition;
|
||||
import magic.model.stack.MagicCardOnStack;
|
||||
import magic.model.action.MagicPlayMod;
|
||||
import magic.model.action.PlayCardFromStackAction;
|
||||
import magic.model.condition.MagicCondition;
|
||||
|
||||
import java.util.Arrays;
|
||||
import magic.model.MagicCard;
|
||||
import magic.model.MagicCardDefinition;
|
||||
import magic.model.MagicManaCost;
|
||||
import magic.model.condition.MagicCondition;
|
||||
|
||||
public class MagicSurgeActivation extends MagicHandCastActivation {
|
||||
|
||||
|
|
|
@ -1,20 +1,15 @@
|
|||
package magic.model.event;
|
||||
|
||||
import java.util.Arrays;
|
||||
import magic.model.MagicCard;
|
||||
import magic.model.MagicCounterType;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicLocationType;
|
||||
import magic.model.MagicManaCost;
|
||||
import magic.model.MagicPayedCost;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.action.ChangeCountersAction;
|
||||
import magic.model.action.ShiftCardAction;
|
||||
import magic.model.stack.MagicAbilityOnStack;
|
||||
import magic.model.trigger.MagicTrigger;
|
||||
import magic.model.trigger.MagicTriggerType;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
public class MagicSuspendActivation extends MagicCardAbilityActivation {
|
||||
|
||||
|
|
|
@ -2,17 +2,9 @@ package magic.model.event;
|
|||
|
||||
import magic.model.MagicCard;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicManaCost;
|
||||
import magic.model.MagicPayedCost;
|
||||
import magic.model.MagicLocationType;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.MagicPayedCost;
|
||||
import magic.model.choice.MagicTargetChoice;
|
||||
import magic.model.stack.MagicAbilityOnStack;
|
||||
import magic.model.trigger.MagicTrigger;
|
||||
import magic.model.trigger.MagicTriggerType;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
public class MagicTypeCyclingActivation extends MagicCyclingActivation {
|
||||
|
||||
|
|
|
@ -1,17 +1,14 @@
|
|||
package magic.model.event;
|
||||
|
||||
import java.util.Arrays;
|
||||
import magic.model.MagicCard;
|
||||
import magic.model.MagicCardDefinition;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicManaCost;
|
||||
import magic.model.MagicPayedCost;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.MagicCardDefinition;
|
||||
import magic.model.action.MagicPlayMod;
|
||||
import magic.model.action.ReanimateAction;
|
||||
import magic.model.choice.MagicChoice;
|
||||
import magic.model.condition.MagicCondition;
|
||||
import magic.model.stack.MagicAbilityOnStack;
|
||||
import java.util.Arrays;
|
||||
|
||||
public class MagicUnearthActivation extends MagicCardAbilityActivation {
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package magic.model.mstatic;
|
||||
|
||||
import java.util.Set;
|
||||
import magic.model.MagicAmount;
|
||||
import magic.model.MagicCardDefinition;
|
||||
import magic.model.MagicChangeCardDefinition;
|
||||
import magic.model.MagicGame;
|
||||
|
@ -7,11 +9,6 @@ import magic.model.MagicPermanent;
|
|||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicPowerToughness;
|
||||
import magic.model.MagicSubType;
|
||||
import magic.model.MagicAmount;
|
||||
import magic.model.target.MagicTargetFilter;
|
||||
import magic.model.target.MagicTarget;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/*
|
||||
604.3a A static ability is a characteristic-defining ability if it meets
|
||||
|
|
|
@ -3,14 +3,12 @@ package magic.model.phase;
|
|||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.phase.MagicPhaseType;
|
||||
import magic.model.action.ChangeExtraTurnsAction;
|
||||
import magic.model.action.CleanupPlayerAction;
|
||||
import magic.model.action.CleanupTurnStaticsAction;
|
||||
import magic.model.action.CleanupTurnTriggersAction;
|
||||
import magic.model.action.PayDelayedCostsAction;
|
||||
import magic.model.event.MagicDiscardEvent;
|
||||
import magic.model.event.MagicEvent;
|
||||
|
||||
public class MagicCleanupPhase extends MagicPhase {
|
||||
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
package magic.model.phase;
|
||||
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.action.ReturnExiledAction;
|
||||
import magic.model.event.MagicDrawEvent;
|
||||
import magic.model.trigger.MagicTriggerType;
|
||||
import magic.ui.MagicSound;
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@ import magic.model.MagicGame;
|
|||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicPermanentState;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicPlayerState;
|
||||
import magic.model.action.ChangeStateAction;
|
||||
import magic.model.action.UntapAction;
|
||||
import magic.model.trigger.MagicTriggerType;
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
package magic.model.target;
|
||||
|
||||
import magic.model.MagicCard;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicSource;
|
||||
|
||||
|
|
|
@ -1,19 +1,17 @@
|
|||
package magic.model.target;
|
||||
|
||||
import magic.model.MagicCard;
|
||||
import magic.model.MagicColor;
|
||||
import magic.model.MagicAbility;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicType;
|
||||
import magic.model.MagicSubType;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.event.MagicEvent;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import magic.model.MagicAbility;
|
||||
import magic.model.MagicCard;
|
||||
import magic.model.MagicColor;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.MagicSubType;
|
||||
import magic.model.MagicType;
|
||||
import magic.model.event.MagicEvent;
|
||||
|
||||
public abstract class MagicCardFilterImpl implements MagicTargetFilter<MagicCard> {
|
||||
public List<MagicCard> filter(final MagicSource source) {
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
package magic.model.target;
|
||||
|
||||
import magic.model.MagicGame;
|
||||
import java.util.List;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.event.MagicEvent;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface MagicTargetFilter<T extends MagicTarget> {
|
||||
|
||||
default boolean isStatic() {
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
package magic.model.trigger;
|
||||
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.MagicPayedCost;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.MagicSubType;
|
||||
import magic.model.action.ExileLinkAction;
|
||||
import magic.model.action.MagicPermanentAction;
|
||||
import magic.model.action.SacrificeAction;
|
||||
import magic.model.choice.MagicMayChoice;
|
||||
import magic.model.choice.MagicTargetChoice;
|
||||
|
|
|
@ -5,7 +5,6 @@ import magic.model.MagicGame;
|
|||
import magic.model.MagicPayedCost;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.action.ChangeCountersAction;
|
||||
import magic.model.action.MagicPermanentAction;
|
||||
import magic.model.action.SacrificeAction;
|
||||
import magic.model.choice.MagicMayChoice;
|
||||
import magic.model.choice.MagicTargetChoice;
|
||||
|
|
|
@ -3,7 +3,6 @@ package magic.model.trigger;
|
|||
import magic.model.MagicAbility;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicPermanentList;
|
||||
import magic.model.action.ChangeTurnPTAction;
|
||||
import magic.model.event.MagicEvent;
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@ import magic.model.MagicPayedCost;
|
|||
import magic.model.MagicPermanent;
|
||||
import magic.model.action.AttachAction;
|
||||
import magic.model.action.PlayTokenAction;
|
||||
import magic.model.action.MagicPermanentAction;
|
||||
import magic.model.event.MagicEvent;
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,18 +1,16 @@
|
|||
package magic.model.trigger;
|
||||
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicCard;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicLocationType;
|
||||
import magic.model.MagicManaCost;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.action.CastCardAction;
|
||||
import magic.model.action.MoveCardAction;
|
||||
import magic.model.action.ShiftCardAction;
|
||||
import magic.model.action.CastCardAction;
|
||||
import magic.model.action.EnqueueTriggerAction;
|
||||
import magic.model.choice.MagicMayChoice;
|
||||
import magic.model.choice.MagicPayManaCostChoice;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.event.MagicEventAction;
|
||||
|
||||
public class MadnessTrigger extends ThisPutIntoGraveyardTrigger {
|
||||
|
||||
|
|
|
@ -2,11 +2,10 @@ package magic.model.trigger;
|
|||
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicLocationType;
|
||||
import magic.model.action.RemoveFromPlayAction;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.event.MagicSourceEvent;
|
||||
import magic.model.target.MagicTargetFilter;
|
||||
import magic.model.action.RemoveFromPlayAction;
|
||||
|
||||
public abstract class SacrificeTrigger extends MagicTrigger<RemoveFromPlayAction> {
|
||||
public SacrificeTrigger(final int priority) {
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
package magic.model.trigger;
|
||||
|
||||
import magic.model.MagicCard;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicCard;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.event.MagicHauntEvent;
|
||||
|
|
|
@ -2,7 +2,6 @@ package magic.model.trigger;
|
|||
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicPermanentState;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.event.MagicSourceEvent;
|
||||
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
package magic.test;
|
||||
|
||||
import magic.ai.MagicAIImpl;
|
||||
import magic.model.MagicDuel;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicDeckProfile;
|
||||
import magic.model.phase.*;
|
||||
import magic.ai.MagicAIImpl;
|
||||
|
||||
class TestAnafenza extends TestGameBuilder {
|
||||
public MagicGame getGame() {
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
package magic.test;
|
||||
|
||||
import magic.ai.MagicAIImpl;
|
||||
import magic.model.MagicDuel;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicDeckProfile;
|
||||
import magic.model.phase.*;
|
||||
import magic.ai.MagicAIImpl;
|
||||
|
||||
class TestAwaken extends TestGameBuilder {
|
||||
public MagicGame getGame() {
|
||||
|
|
|
@ -1,22 +1,17 @@
|
|||
package magic.test;
|
||||
|
||||
import magic.model.MagicDuel;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicCardDefinition;
|
||||
import magic.model.MagicDeckProfile;
|
||||
import magic.model.phase.*;
|
||||
import magic.ai.MagicAIImpl;
|
||||
import magic.ui.MagicImages;
|
||||
import magic.data.CardDefinitions;
|
||||
import magic.cardBuilder.renderers.CardBuilder;
|
||||
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.awt.image.DataBufferInt;
|
||||
import javax.imageio.ImageIO;
|
||||
import java.util.Arrays;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.Arrays;
|
||||
import javax.imageio.ImageIO;
|
||||
import magic.ai.MagicAIImpl;
|
||||
import magic.cardBuilder.renderers.CardBuilder;
|
||||
import magic.data.CardDefinitions;
|
||||
import magic.model.MagicCardDefinition;
|
||||
import magic.model.MagicDuel;
|
||||
import magic.model.MagicGame;
|
||||
|
||||
class TestCardBuilder extends TestGameBuilder {
|
||||
public MagicGame getGame() {
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
|
||||
package magic.test;
|
||||
|
||||
import magic.ai.MagicAIImpl;
|
||||
import magic.model.MagicDuel;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicDeckProfile;
|
||||
import magic.model.phase.*;
|
||||
import magic.ai.MagicAIImpl;
|
||||
|
||||
class TestColfenorsUrn extends TestGameBuilder {
|
||||
public MagicGame getGame() {
|
||||
|
|
|
@ -1,13 +1,10 @@
|
|||
|
||||
|
||||
package magic.test;
|
||||
|
||||
import magic.ai.MagicAIImpl;
|
||||
import magic.model.MagicDuel;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicDeckProfile;
|
||||
import magic.model.phase.*;
|
||||
import magic.ai.MagicAIImpl;
|
||||
|
||||
class TestCostIncrease extends TestGameBuilder {
|
||||
public MagicGame getGame() {
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
|
||||
package magic.test;
|
||||
|
||||
import magic.ai.MagicAIImpl;
|
||||
import magic.model.MagicDuel;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicDeckProfile;
|
||||
import magic.model.phase.*;
|
||||
import magic.ai.MagicAIImpl;
|
||||
|
||||
class TestCostReduction extends TestGameBuilder {
|
||||
/*
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
|
||||
package magic.test;
|
||||
|
||||
import magic.ai.MagicAIImpl;
|
||||
import magic.model.MagicDuel;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicDeckProfile;
|
||||
import magic.model.phase.*;
|
||||
import magic.ai.MagicAIImpl;
|
||||
|
||||
class TestEmerge extends TestGameBuilder {
|
||||
public MagicGame getGame() {
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
package magic.test;
|
||||
|
||||
import magic.ai.MagicAIImpl;
|
||||
import magic.model.MagicDuel;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicDeckProfile;
|
||||
import magic.model.phase.*;
|
||||
import magic.ai.MagicAIImpl;
|
||||
|
||||
class TestIssue760 extends TestGameBuilder {
|
||||
public MagicGame getGame() {
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
|
||||
package magic.test;
|
||||
|
||||
import magic.ai.MagicAIImpl;
|
||||
import magic.model.MagicDuel;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicDeckProfile;
|
||||
import magic.model.phase.*;
|
||||
import magic.ai.MagicAIImpl;
|
||||
|
||||
class TestManaCrash extends TestGameBuilder {
|
||||
public MagicGame getGame() {
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
package magic.test;
|
||||
|
||||
import magic.ai.MagicAIImpl;
|
||||
import magic.model.MagicDuel;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicDeckProfile;
|
||||
import magic.model.phase.*;
|
||||
import magic.ai.MagicAIImpl;
|
||||
|
||||
/*
|
||||
* AI should attack with Bears and kill player in two turns.
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
package magic.test;
|
||||
|
||||
import magic.ai.MagicAIImpl;
|
||||
import magic.model.MagicDuel;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicDeckProfile;
|
||||
import magic.model.phase.*;
|
||||
import magic.ai.MagicAIImpl;
|
||||
|
||||
// 1. Click on Lighting Bolt
|
||||
// 2. Click on Undo
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
|
||||
package magic.test;
|
||||
|
||||
import magic.ai.MagicAIImpl;
|
||||
import magic.model.MagicDuel;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicDeckProfile;
|
||||
import magic.model.phase.*;
|
||||
import magic.ai.MagicAIImpl;
|
||||
|
||||
class TestSurge extends TestGameBuilder {
|
||||
public MagicGame getGame() {
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
package magic.test;
|
||||
|
||||
import magic.ai.MagicAIImpl;
|
||||
import magic.model.MagicDuel;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicDeckProfile;
|
||||
import magic.model.phase.*;
|
||||
import magic.ai.MagicAIImpl;
|
||||
|
||||
class TestUlrich extends TestGameBuilder {
|
||||
public MagicGame getGame() {
|
||||
|
|
|
@ -11,11 +11,11 @@ import java.util.stream.Stream;
|
|||
import javax.swing.AbstractAction;
|
||||
import javax.swing.JButton;
|
||||
import magic.data.CardDefinitions;
|
||||
import magic.data.GeneralConfig;
|
||||
import magic.model.MagicCardDefinition;
|
||||
import magic.translate.MText;
|
||||
import magic.ui.ICardFilterPanelListener;
|
||||
import magic.ui.helpers.MouseHelper;
|
||||
import magic.ui.widget.TexturedPanel;
|
||||
import magic.ui.widget.card.filter.button.ColorFilterPanel;
|
||||
import magic.ui.widget.card.filter.button.CostFilterPanel;
|
||||
import magic.ui.widget.card.filter.button.CubeFilterPanel;
|
||||
|
@ -29,7 +29,6 @@ import magic.ui.widget.card.filter.button.StatusFilterPanel;
|
|||
import magic.ui.widget.card.filter.button.SubTypeFilterPanel;
|
||||
import magic.ui.widget.card.filter.button.TypeFilterPanel;
|
||||
import magic.ui.widget.card.filter.button.UnsupportedFilterPanel;
|
||||
import magic.ui.widget.TexturedPanel;
|
||||
import net.miginfocom.swing.MigLayout;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
|
|
Loading…
Reference in New Issue