mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- Checkstyle.
This commit is contained in:
@@ -73,7 +73,7 @@ public class ComputerUtil {
|
||||
final Card source = sa.getSourceCard();
|
||||
|
||||
boolean flashb = false;
|
||||
|
||||
|
||||
if (source.hasStartOfKeyword("May be played without paying its mana cost")) {
|
||||
final SpellAbility newSA = sa.copy();
|
||||
final Cost cost = sa.getPayCosts();
|
||||
|
||||
@@ -398,10 +398,10 @@ public class GameAction {
|
||||
if (c.isCreature() && origZone.is(Constant.Zone.Battlefield)) {
|
||||
for (final Card recoverable : c.getOwner().getCardsIn(Zone.Graveyard)) {
|
||||
if (recoverable.hasStartOfKeyword("Recover") && !recoverable.equals(c)) {
|
||||
|
||||
|
||||
final String recoverCost = recoverable.getKeyword().get(recoverable.getKeywordPosition("Recover"))
|
||||
.split(":")[1];
|
||||
|
||||
|
||||
final Command paidCommand = new Command() {
|
||||
private static final long serialVersionUID = -6357156873861051845L;
|
||||
|
||||
@@ -419,7 +419,7 @@ public class GameAction {
|
||||
AllZone.getGameAction().exile(recoverable);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
final SpellAbility abRecover = new Ability(recoverable, recoverCost) {
|
||||
@Override
|
||||
public void resolve() {
|
||||
|
||||
@@ -61,11 +61,11 @@ public class Cost {
|
||||
public final boolean getSacCost() {
|
||||
return this.sacCost;
|
||||
}
|
||||
|
||||
|
||||
public final void setNoManaCostChange(boolean b) {
|
||||
noManaCostChange = b;
|
||||
}
|
||||
|
||||
|
||||
public final boolean getNoManaCostChange() {
|
||||
return noManaCostChange;
|
||||
}
|
||||
@@ -378,11 +378,11 @@ public class Cost {
|
||||
* a {@link forge.card.spellability.SpellAbility} object.
|
||||
*/
|
||||
public final void changeCost(final SpellAbility sa) {
|
||||
|
||||
|
||||
if (getNoManaCostChange()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// TODO: Change where ChangeCost happens
|
||||
for (final CostPart part : this.costParts) {
|
||||
if (part instanceof CostMana) {
|
||||
|
||||
@@ -454,7 +454,7 @@ public class StaticAbility {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (this.mapParams.containsKey("CheckSecondSVar")) {
|
||||
final int sVar = AbilityFactory.calculateAmount(this.hostCard, this.mapParams.get("CheckSecondSVar"), null);
|
||||
String comparator = "GE1";
|
||||
|
||||
@@ -127,7 +127,7 @@ public class ControlHand {
|
||||
/** Adds listeners to hand panel: clicks, mouseover, etc. */
|
||||
public void addListeners() {
|
||||
final ViewTopLevel t = (ViewTopLevel) AllZone.getDisplay();
|
||||
|
||||
|
||||
view.getHandArea().addMouseListener(new MouseAdapter() {
|
||||
// Card click
|
||||
@Override
|
||||
@@ -141,7 +141,7 @@ public class ControlHand {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
view.getHandArea().addMouseMotionListener(new MouseMotionAdapter() {
|
||||
// Card mouseover
|
||||
@Override
|
||||
@@ -150,7 +150,7 @@ public class ControlHand {
|
||||
if (c != null) {
|
||||
t.setCard(c);
|
||||
}
|
||||
} // mouseMoved
|
||||
} // mouseMoved
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -566,7 +566,7 @@ public class ViewField extends FRoundedPanel {
|
||||
this.defaultBG = ViewField.this.skin.getClrTheme();
|
||||
}
|
||||
this.setBackground(this.defaultBG);
|
||||
|
||||
|
||||
// Resize adapter
|
||||
this.addComponentListener(new ComponentAdapter() {
|
||||
@Override
|
||||
@@ -574,7 +574,7 @@ public class ViewField extends FRoundedPanel {
|
||||
setFont(ViewField.this.skin.getFont1().deriveFont(Font.PLAIN, (getHeight() / 2)));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// Hover effect
|
||||
this.madHover = new MouseAdapter() {
|
||||
@Override
|
||||
|
||||
@@ -152,9 +152,9 @@ public class ViewTabber {
|
||||
|
||||
this.pnlStack.removeAll();
|
||||
this.vtpTabber.showTab(0);
|
||||
|
||||
|
||||
this.vtpTabber.getAllVTabs().get(0).setText("Stack : " + stack.size());
|
||||
|
||||
|
||||
final Font font = this.skin.getFont1().deriveFont(Font.PLAIN, 14);
|
||||
final Border border = new MatteBorder(0, 0, 1, 0, this.skin.getClrBorders());
|
||||
|
||||
@@ -206,7 +206,7 @@ public class ViewTabber {
|
||||
final Border border = new MatteBorder(0, 0, 0, 0, skin.getClrBorders());
|
||||
|
||||
this.vtpTabber.getAllVTabs().get(1).setText("Combat : " + AllZone.getCombat().getAttackers().length);
|
||||
|
||||
|
||||
final JTextArea tar = new JTextArea(s);
|
||||
tar.setOpaque(false);
|
||||
tar.setBorder(border);
|
||||
|
||||
@@ -211,13 +211,13 @@ public class FVerticalTabPanel extends FPanel {
|
||||
at.rotate(Math.toRadians(-90), 0, 0);
|
||||
g2d.setTransform(at);
|
||||
}
|
||||
|
||||
|
||||
/** @param txt0   String */
|
||||
public void setText(String txt0) {
|
||||
this.msg = txt0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public List<VTab> getAllVTabs() {
|
||||
return allVTabs;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user