mirror of
https://github.com/correl/mage.git
synced 2024-12-27 03:00:13 +00:00
Added javadoc to Card.moveToExile
removed unused imports
This commit is contained in:
parent
bc1dcff4fe
commit
c9ddaac961
3 changed files with 11 additions and 5 deletions
|
@ -42,7 +42,6 @@ import mage.abilities.effects.common.search.SearchLibraryRevealPutInHandEffect;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.filter.common.FilterBasicLandCard;
|
import mage.filter.common.FilterBasicLandCard;
|
||||||
import mage.target.common.TargetCardInLibrary;
|
import mage.target.common.TargetCardInLibrary;
|
||||||
import mage.target.common.TargetCreaturePermanent;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -62,7 +61,7 @@ public class HorizonSpellbomb extends CardImpl<HorizonSpellbomb> {
|
||||||
ability.addCost(new TapSourceCost());
|
ability.addCost(new TapSourceCost());
|
||||||
ability.addCost(new SacrificeSourceCost());
|
ability.addCost(new SacrificeSourceCost());
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
this.addAbility(new DiesTriggeredAbility(new DoIfCostPaid(new DrawCardControllerEffect(1), new ManaCostsImpl("{G}")), false));
|
this.addAbility(new DiesTriggeredAbility(new DoIfCostPaid(new DrawCardControllerEffect(1), new ManaCostsImpl("{G}"))));
|
||||||
}
|
}
|
||||||
|
|
||||||
public HorizonSpellbomb(final HorizonSpellbomb card) {
|
public HorizonSpellbomb(final HorizonSpellbomb card) {
|
||||||
|
|
|
@ -6,7 +6,6 @@ import mage.abilities.Mode;
|
||||||
import mage.abilities.costs.Cost;
|
import mage.abilities.costs.Cost;
|
||||||
import mage.abilities.effects.OneShotEffect;
|
import mage.abilities.effects.OneShotEffect;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.permanent.Permanent;
|
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
|
|
||||||
public class DoIfCostPaid extends OneShotEffect<DoIfCostPaid> {
|
public class DoIfCostPaid extends OneShotEffect<DoIfCostPaid> {
|
||||||
|
|
|
@ -37,7 +37,6 @@ import mage.Mana;
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.SpellAbility;
|
import mage.abilities.SpellAbility;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.events.GameEvent;
|
|
||||||
import mage.watchers.Watcher;
|
import mage.watchers.Watcher;
|
||||||
|
|
||||||
public interface Card extends MageObject {
|
public interface Card extends MageObject {
|
||||||
|
@ -76,9 +75,18 @@ public interface Card extends MageObject {
|
||||||
* <li>BATTLEFIELD: <ul><li>true - tapped</li><li>false - untapped</li></ul></li>
|
* <li>BATTLEFIELD: <ul><li>true - tapped</li><li>false - untapped</li></ul></li>
|
||||||
* <li>GRAVEYARD: <ul><li>true - not from Battlefield</li><li>false - from Battlefield</li></ul></li>
|
* <li>GRAVEYARD: <ul><li>true - not from Battlefield</li><li>false - from Battlefield</li></ul></li>
|
||||||
* </ul>
|
* </ul>
|
||||||
* @return true if cards was moved to zone
|
* @return true if card was moved to zone
|
||||||
*/
|
*/
|
||||||
public boolean moveToZone(Zone zone, UUID sourceId, Game game, boolean flag);
|
public boolean moveToZone(Zone zone, UUID sourceId, Game game, boolean flag);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Moves the card to an exile zone
|
||||||
|
* @param exileId set to null for generic exile zone
|
||||||
|
* @param name used for exile zone with the specified exileId
|
||||||
|
* @param sourceId
|
||||||
|
* @param game
|
||||||
|
* @return true if card was moved to zone
|
||||||
|
*/
|
||||||
public boolean moveToExile(UUID exileId, String name, UUID sourceId, Game game);
|
public boolean moveToExile(UUID exileId, String name, UUID sourceId, Game game);
|
||||||
public boolean cast(Game game, Zone fromZone, SpellAbility ability, UUID controllerId);
|
public boolean cast(Game game, Zone fromZone, SpellAbility ability, UUID controllerId);
|
||||||
public boolean putOntoBattlefield(Game game, Zone fromZone, UUID sourceId, UUID controllerId);
|
public boolean putOntoBattlefield(Game game, Zone fromZone, UUID sourceId, UUID controllerId);
|
||||||
|
|
Loading…
Reference in a new issue