From 05899c560a70c5a148ac659dd48e341fcf957b04 Mon Sep 17 00:00:00 2001 From: melvin Date: Sun, 14 Oct 2012 21:55:54 +0800 Subject: [PATCH] changed line ending to LF --- .../MagicExileUntilThisLeavesPlayAction.java | 88 +++++++++---------- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/src/magic/model/action/MagicExileUntilThisLeavesPlayAction.java b/src/magic/model/action/MagicExileUntilThisLeavesPlayAction.java index 1b7c057b2f..9d66dd4a27 100644 --- a/src/magic/model/action/MagicExileUntilThisLeavesPlayAction.java +++ b/src/magic/model/action/MagicExileUntilThisLeavesPlayAction.java @@ -1,45 +1,45 @@ -package magic.model.action; - -import magic.model.MagicCard; -import magic.model.MagicGame; -import magic.model.MagicLocationType; -import magic.model.MagicPermanent; - -public class MagicExileUntilThisLeavesPlayAction extends MagicAction { - - private final MagicPermanent source; - private final MagicPermanent permanent; - private final MagicCard card; - private final MagicLocationType location; - - public MagicExileUntilThisLeavesPlayAction(final MagicPermanent source,final MagicCard card,final MagicLocationType location) { - this.source = source; - this.permanent = MagicPermanent.NONE; - this.card = card; - this.location = location; - } - - public MagicExileUntilThisLeavesPlayAction(final MagicPermanent source,final MagicPermanent permanent) { - this.source = source; - this.permanent = permanent; - this.card = permanent.getCard(); - this.location = MagicLocationType.Exile; - } - - @Override - public void doAction(final MagicGame game) { - if (permanent != MagicPermanent.NONE) { - game.doAction(new MagicRemoveFromPlayAction(permanent,location)); - } else { - game.doAction(new MagicRemoveCardAction(card,location)); - game.doAction(new MagicMoveCardAction(card,location,MagicLocationType.Exile)); - } - - source.addExiledCard(card); - } - - @Override - public void undoAction(final MagicGame game) { - source.removeExiledCard(card); - } +package magic.model.action; + +import magic.model.MagicCard; +import magic.model.MagicGame; +import magic.model.MagicLocationType; +import magic.model.MagicPermanent; + +public class MagicExileUntilThisLeavesPlayAction extends MagicAction { + + private final MagicPermanent source; + private final MagicPermanent permanent; + private final MagicCard card; + private final MagicLocationType location; + + public MagicExileUntilThisLeavesPlayAction(final MagicPermanent source,final MagicCard card,final MagicLocationType location) { + this.source = source; + this.permanent = MagicPermanent.NONE; + this.card = card; + this.location = location; + } + + public MagicExileUntilThisLeavesPlayAction(final MagicPermanent source,final MagicPermanent permanent) { + this.source = source; + this.permanent = permanent; + this.card = permanent.getCard(); + this.location = MagicLocationType.Exile; + } + + @Override + public void doAction(final MagicGame game) { + if (permanent != MagicPermanent.NONE) { + game.doAction(new MagicRemoveFromPlayAction(permanent,location)); + } else { + game.doAction(new MagicRemoveCardAction(card,location)); + game.doAction(new MagicMoveCardAction(card,location,MagicLocationType.Exile)); + } + + source.addExiledCard(card); + } + + @Override + public void undoAction(final MagicGame game) { + source.removeExiledCard(card); + } }