mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Checkstyle.
This commit is contained in:
@@ -6,7 +6,6 @@ import forge.AllZoneUtil;
|
|||||||
import forge.Card;
|
import forge.Card;
|
||||||
import forge.Constant.Zone;
|
import forge.Constant.Zone;
|
||||||
import forge.card.spellability.SpellAbility;
|
import forge.card.spellability.SpellAbility;
|
||||||
import forge.PlayerZone;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO: Write javadoc for this type.
|
* TODO: Write javadoc for this type.
|
||||||
@@ -14,10 +13,16 @@ import forge.PlayerZone;
|
|||||||
*/
|
*/
|
||||||
public class ReplaceMoved extends ReplacementEffect {
|
public class ReplaceMoved extends ReplacementEffect {
|
||||||
|
|
||||||
public ReplaceMoved(final HashMap<String,String> mapParams,final Card host) {
|
/**
|
||||||
super(mapParams,host);
|
*
|
||||||
|
* TODO: Write javadoc for Constructor.
|
||||||
|
* @param mapParams   HashMap<String, String>
|
||||||
|
* @param host   Card
|
||||||
|
*/
|
||||||
|
public ReplaceMoved(final HashMap<String, String> mapParams, final Card host) {
|
||||||
|
super(mapParams, host);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see forge.card.replacement.ReplacementEffect#canReplace(java.util.HashMap)
|
* @see forge.card.replacement.ReplacementEffect#canReplace(java.util.HashMap)
|
||||||
*/
|
*/
|
||||||
@@ -33,17 +38,17 @@ public class ReplaceMoved extends ReplacementEffect {
|
|||||||
}
|
}
|
||||||
if (this.getMapParams().containsKey("Origin")) {
|
if (this.getMapParams().containsKey("Origin")) {
|
||||||
Zone z = Zone.smartValueOf(this.getMapParams().get("Origin"));
|
Zone z = Zone.smartValueOf(this.getMapParams().get("Origin"));
|
||||||
if(z != (Zone)runParams.get("Origin")) {
|
if (z != (Zone) runParams.get("Origin")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.getMapParams().containsKey("Destination")) {
|
if (this.getMapParams().containsKey("Destination")) {
|
||||||
Zone z = Zone.smartValueOf(this.getMapParams().get("Destination"));
|
Zone z = Zone.smartValueOf(this.getMapParams().get("Destination"));
|
||||||
if(z != (Zone)runParams.get("Destination")) {
|
if (z != (Zone) runParams.get("Destination")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -52,9 +57,9 @@ public class ReplaceMoved extends ReplacementEffect {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public ReplacementEffect getCopy() {
|
public ReplacementEffect getCopy() {
|
||||||
return new ReplaceMoved(this.getMapParams(),this.getHostCard());
|
return new ReplaceMoved(this.getMapParams(), this.getHostCard());
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see forge.card.replacement.ReplacementEffect#setReplacingObjects(java.util.HashMap, forge.card.spellability.SpellAbility)
|
* @see forge.card.replacement.ReplacementEffect#setReplacingObjects(java.util.HashMap, forge.card.spellability.SpellAbility)
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user