checkstyle and refactoring

This commit is contained in:
jendave
2011-10-28 22:10:23 +00:00
parent 57a72484cd
commit 1f0e530f9f
5 changed files with 246 additions and 127 deletions

View File

@@ -185,7 +185,7 @@
<!-- MY FAVOURITE --> <!-- MY FAVOURITE -->
<module name="EmptyStatement"/> <module name="EmptyStatement"/>
<module name="EqualsHashCode"/> <module name="EqualsHashCode"/>
<module name="HiddenField"/> <!-- <module name="HiddenField"/> -->
<module name="IllegalInstantiation"/> <module name="IllegalInstantiation"/>
<module name="InnerAssignment"/> <module name="InnerAssignment"/>
<module name="MagicNumber"/> <module name="MagicNumber"/>
@@ -206,8 +206,8 @@
<!-- Miscellaneous other checks. --> <!-- Miscellaneous other checks. -->
<!-- See http://checkstyle.sf.net/config_misc.html --> <!-- See http://checkstyle.sf.net/config_misc.html -->
<module name="ArrayTypeStyle"/> <module name="ArrayTypeStyle"/>
<module name="FinalParameters"/> <!-- <module name="FinalParameters"/> -->
<module name="TodoComment"/> <!-- <module name="TodoComment"/> -->
<module name="UpperEll"/> <module name="UpperEll"/>
</module> </module>

View File

@@ -821,7 +821,7 @@ public class Card extends GameEntity implements Comparable<Card> {
*/ */
public final boolean canAnyPlayerActivate() { public final boolean canAnyPlayerActivate() {
for (SpellAbility s : getCharacteristics().getSpellAbility()) { for (SpellAbility s : getCharacteristics().getSpellAbility()) {
if (s.getRestrictions().getAnyPlayer()) { if (s.getRestrictions().isAnyPlayer()) {
return true; return true;
} }
} }

View File

@@ -183,7 +183,7 @@ public class SpellAbility_Condition extends SpellAbility_Variables {
return false; return false;
} }
if (bOpponentTurn && AllZone.getPhase().isPlayerTurn(activator)) { if (isOpponentTurn() && AllZone.getPhase().isPlayerTurn(activator)) {
return false; return false;
} }
@@ -206,7 +206,7 @@ public class SpellAbility_Condition extends SpellAbility_Variables {
} }
} }
if (allM12Empires) { if (isAllM12Empires()) {
Player p = sa.getSourceCard().getController(); Player p = sa.getSourceCard().getController();
boolean has = AllZoneUtil.isCardInPlay("Crown of Empires", p); boolean has = AllZoneUtil.isCardInPlay("Crown of Empires", p);
has &= AllZoneUtil.isCardInPlay("Scepter of Empires", p); has &= AllZoneUtil.isCardInPlay("Scepter of Empires", p);
@@ -215,7 +215,7 @@ public class SpellAbility_Condition extends SpellAbility_Variables {
return false; return false;
} }
} }
if (notAllM12Empires) { if (isNotAllM12Empires()) {
Player p = sa.getSourceCard().getController(); Player p = sa.getSourceCard().getController();
boolean has = AllZoneUtil.isCardInPlay("Crown of Empires", p); boolean has = AllZoneUtil.isCardInPlay("Crown of Empires", p);
has &= AllZoneUtil.isCardInPlay("Scepter of Empires", p); has &= AllZoneUtil.isCardInPlay("Scepter of Empires", p);
@@ -225,22 +225,22 @@ public class SpellAbility_Condition extends SpellAbility_Variables {
} }
} }
if (nCardsInHand != -1) { if (getCardsInHand() != -1) {
// Can handle Library of Alexandria, or Hellbent // Can handle Library of Alexandria, or Hellbent
if (activator.getCardsIn(Zone.Hand).size() != nCardsInHand) { if (activator.getCardsIn(Zone.Hand).size() != getCardsInHand()) {
return false; return false;
} }
} }
if (sIsPresent != null) { if (getIsPresent() != null) {
CardList list = new CardList(); CardList list = new CardList();
if (presentDefined != null) { if (getPresentDefined() != null) {
list.addAll(AbilityFactory.getDefinedCards(sa.getSourceCard(), presentDefined, sa).toArray()); list.addAll(AbilityFactory.getDefinedCards(sa.getSourceCard(), getPresentDefined(), sa).toArray());
} else { } else {
list = AllZoneUtil.getCardsIn(Zone.Battlefield); list = AllZoneUtil.getCardsIn(Zone.Battlefield);
} }
list = list.getValidCards(sIsPresent.split(","), sa.getActivatingPlayer(), sa.getSourceCard()); list = list.getValidCards(getIsPresent().split(","), sa.getActivatingPlayer(), sa.getSourceCard());
int right; int right;
String rightString = getPresentCompare().substring(2); String rightString = getPresentCompare().substring(2);
@@ -280,17 +280,17 @@ public class SpellAbility_Condition extends SpellAbility_Variables {
} }
} }
if (null != manaSpent) { if (null != getManaSpent()) {
if (!sa.getSourceCard().getColorsPaid().contains(manaSpent)) { if (!sa.getSourceCard().getColorsPaid().contains(getManaSpent())) {
return false; return false;
} }
} }
if (svarToCheck != null) { if (getsVarToCheck() != null) {
int svarValue = AbilityFactory.calculateAmount(sa.getSourceCard(), svarToCheck, sa); int svarValue = AbilityFactory.calculateAmount(sa.getSourceCard(), getsVarToCheck(), sa);
int operandValue = AbilityFactory.calculateAmount(sa.getSourceCard(), svarOperand, sa); int operandValue = AbilityFactory.calculateAmount(sa.getSourceCard(), getsVarOperand(), sa);
if (!AllZoneUtil.compare(svarValue, svarOperator, operandValue)) { if (!AllZoneUtil.compare(svarValue, getsVarOperator(), operandValue)) {
return false; return false;
} }

View File

@@ -176,13 +176,13 @@ public class SpellAbility_Restriction extends SpellAbility_Variables {
} }
PlayerZone cardZone = AllZone.getZoneOf(c); PlayerZone cardZone = AllZone.getZoneOf(c);
if (!cardZone.is(zone)) { if (!cardZone.is(getZone())) {
// If Card is not in the default activating zone, do some additional // If Card is not in the default activating zone, do some additional
// checks // checks
// Not a Spell, or on Battlefield, return false // Not a Spell, or on Battlefield, return false
if (!sa.isSpell() || cardZone.is(Zone.Battlefield)) { if (!sa.isSpell() || cardZone.is(Zone.Battlefield)) {
return false; return false;
} else if (!c.hasStartOfKeyword("May be played") || !zone.equals(Zone.Hand)) { } else if (!c.hasStartOfKeyword("May be played") || !getZone().equals(Zone.Hand)) {
return false; return false;
} }
} }
@@ -201,11 +201,11 @@ public class SpellAbility_Restriction extends SpellAbility_Variables {
return false; return false;
} }
if (bOpponentTurn && AllZone.getPhase().isPlayerTurn(activator)) { if (isOpponentTurn() && AllZone.getPhase().isPlayerTurn(activator)) {
return false; return false;
} }
if (!bAnyPlayer && !activator.equals(c.getController())) { if (!isAnyPlayer() && !activator.equals(c.getController())) {
return false; return false;
} }
@@ -228,8 +228,8 @@ public class SpellAbility_Restriction extends SpellAbility_Variables {
} }
} }
if (nCardsInHand != -1) { if (getCardsInHand() != -1) {
if (activator.getCardsIn(Zone.Hand).size() != nCardsInHand) { if (activator.getCardsIn(Zone.Hand).size() != getCardsInHand()) {
return false; return false;
} }
} }
@@ -261,10 +261,10 @@ public class SpellAbility_Restriction extends SpellAbility_Variables {
return false; return false;
} }
} }
if (sIsPresent != null) { if (getIsPresent() != null) {
CardList list = AllZoneUtil.getCardsIn(presentZone); CardList list = AllZoneUtil.getCardsIn(getPresentZone());
list = list.getValidCards(sIsPresent.split(","), activator, c); list = list.getValidCards(getIsPresent().split(","), activator, c);
int right = 1; int right = 1;
String rightString = getPresentCompare().substring(2); String rightString = getPresentCompare().substring(2);
@@ -318,11 +318,11 @@ public class SpellAbility_Restriction extends SpellAbility_Variables {
} }
} }
if (svarToCheck != null) { if (getsVarToCheck() != null) {
int svarValue = AbilityFactory.calculateAmount(c, svarToCheck, sa); int svarValue = AbilityFactory.calculateAmount(c, getsVarToCheck(), sa);
int operandValue = AbilityFactory.calculateAmount(c, svarOperand, sa); int operandValue = AbilityFactory.calculateAmount(c, getsVarOperand(), sa);
if (!AllZoneUtil.compare(svarValue, svarOperator, operandValue)) { if (!AllZoneUtil.compare(svarValue, getsVarOperator(), operandValue)) {
return false; return false;
} }

View File

@@ -30,7 +30,7 @@ public class SpellAbility_Variables {
// default values for Sorcery speed abilities // default values for Sorcery speed abilities
/** The zone. */ /** The zone. */
protected Constant.Zone zone = Constant.Zone.Battlefield; private Constant.Zone zone = Constant.Zone.Battlefield;
/** The phases. */ /** The phases. */
private ArrayList<String> phases = new ArrayList<String>(); private ArrayList<String> phases = new ArrayList<String>();
@@ -39,10 +39,10 @@ public class SpellAbility_Variables {
private boolean sorcerySpeed = false; private boolean sorcerySpeed = false;
/** The b any player. */ /** The b any player. */
protected boolean bAnyPlayer = false; private boolean anyPlayer = false;
/** The b opponent turn. */ /** The b opponent turn. */
protected boolean bOpponentTurn = false; private boolean opponentTurn = false;
/** The b player turn. */ /** The b player turn. */
private boolean playerTurn = false; private boolean playerTurn = false;
@@ -57,7 +57,7 @@ public class SpellAbility_Variables {
private int activationNumberSacrifice = -1; private int activationNumberSacrifice = -1;
/** The n cards in hand. */ /** The n cards in hand. */
protected int nCardsInHand = -1; private int cardsInHand = -1;
/** The threshold. */ /** The threshold. */
private boolean threshold = false; private boolean threshold = false;
@@ -72,26 +72,26 @@ public class SpellAbility_Variables {
private ArrayList<String> prowl = null; private ArrayList<String> prowl = null;
/** The s is present. */ /** The s is present. */
protected String sIsPresent = null; private String isPresent = null;
/** The present compare. */ /** The present compare. */
private String presentCompare = "GE1"; // Default Compare to Greater or private String presentCompare = "GE1"; // Default Compare to Greater or
// Equal to 1 // Equal to 1
/** The present defined. */ /** The present defined. */
protected String presentDefined = null; private String presentDefined = null;
/** The present zone. */ /** The present zone. */
protected Constant.Zone presentZone = Constant.Zone.Battlefield; private Constant.Zone presentZone = Constant.Zone.Battlefield;
/** The svar to check. */ /** The svar to check. */
protected String svarToCheck = null; private String sVarToCheck = null;
/** The svar operator. */ /** The svar operator. */
protected String svarOperator = "GE"; private String sVarOperator = "GE";
/** The svar operand. */ /** The svar operand. */
protected String svarOperand = "1"; private String sVarOperand = "1";
/** The life total. */ /** The life total. */
private String lifeTotal = null; private String lifeTotal = null;
@@ -100,16 +100,16 @@ public class SpellAbility_Variables {
private String lifeAmount = "GE1"; private String lifeAmount = "GE1";
/** The mana spent. */ /** The mana spent. */
protected String manaSpent = ""; private String manaSpent = "";
/** The pw ability. */ /** The pw ability. */
private boolean pwAbility = false; private boolean pwAbility = false;
/** The all m12 empires. */ /** The all m12 empires. */
protected boolean allM12Empires = false; private boolean allM12Empires = false;
/** The not all m12 empires. */ /** The not all m12 empires. */
protected boolean notAllM12Empires = false; private boolean notAllM12Empires = false;
/** /**
* <p> * <p>
@@ -120,7 +120,7 @@ public class SpellAbility_Variables {
* a boolean * a boolean
*/ */
public final void setNotAllM12Empires(final boolean b) { public final void setNotAllM12Empires(final boolean b) {
notAllM12Empires = b; this.notAllM12Empires = b;
} }
/** /**
@@ -131,7 +131,7 @@ public class SpellAbility_Variables {
* @return a boolean * @return a boolean
*/ */
public final boolean getNotAllM12Empires() { public final boolean getNotAllM12Empires() {
return notAllM12Empires; return this.isNotAllM12Empires();
} }
/** /**
@@ -143,7 +143,7 @@ public class SpellAbility_Variables {
* a boolean * a boolean
*/ */
public final void setAllM12Empires(final boolean b) { public final void setAllM12Empires(final boolean b) {
allM12Empires = b; this.allM12Empires = b;
} }
/** /**
@@ -154,7 +154,7 @@ public class SpellAbility_Variables {
* @return a boolean * @return a boolean
*/ */
public final boolean getAllM12Empires() { public final boolean getAllM12Empires() {
return allM12Empires; return this.isAllM12Empires();
} }
/** /**
@@ -166,7 +166,7 @@ public class SpellAbility_Variables {
* a {@link java.lang.String} object. * a {@link java.lang.String} object.
*/ */
public final void setManaSpent(final String s) { public final void setManaSpent(final String s) {
manaSpent = s; this.manaSpent = s;
} }
/** /**
@@ -177,7 +177,7 @@ public class SpellAbility_Variables {
* @return a {@link java.lang.String} object. * @return a {@link java.lang.String} object.
*/ */
public final String getManaSpent() { public final String getManaSpent() {
return manaSpent; return this.manaSpent;
} }
/** /**
@@ -200,7 +200,7 @@ public class SpellAbility_Variables {
* @return a {@link java.lang.String} object. * @return a {@link java.lang.String} object.
*/ */
public final Constant.Zone getZone() { public final Constant.Zone getZone() {
return zone; return this.zone;
} }
/** /**
@@ -212,7 +212,7 @@ public class SpellAbility_Variables {
* a boolean. * a boolean.
*/ */
public final void setSorcerySpeed(final boolean bSpeed) { public final void setSorcerySpeed(final boolean bSpeed) {
sorcerySpeed = bSpeed; this.sorcerySpeed = bSpeed;
} }
/** /**
@@ -223,7 +223,7 @@ public class SpellAbility_Variables {
* @return a boolean. * @return a boolean.
*/ */
public final boolean isSorcerySpeed() { public final boolean isSorcerySpeed() {
return sorcerySpeed; return this.sorcerySpeed;
} }
/** /**
@@ -235,18 +235,7 @@ public class SpellAbility_Variables {
* a boolean. * a boolean.
*/ */
public final void setAnyPlayer(final boolean anyPlayer) { public final void setAnyPlayer(final boolean anyPlayer) {
bAnyPlayer = anyPlayer; this.anyPlayer = anyPlayer;
}
/**
* <p>
* getAnyPlayer.
* </p>
*
* @return a boolean.
*/
public final boolean getAnyPlayer() {
return bAnyPlayer;
} }
/** /**
@@ -258,7 +247,7 @@ public class SpellAbility_Variables {
* a boolean. * a boolean.
*/ */
public final void setPlayerTurn(final boolean bTurn) { public final void setPlayerTurn(final boolean bTurn) {
playerTurn = bTurn; this.playerTurn = bTurn;
} }
/** /**
@@ -269,7 +258,7 @@ public class SpellAbility_Variables {
* @return a boolean. * @return a boolean.
*/ */
public final boolean getPlayerTurn() { public final boolean getPlayerTurn() {
return isPlayerTurn(); return this.isPlayerTurn();
} }
/** /**
@@ -281,7 +270,7 @@ public class SpellAbility_Variables {
* a boolean. * a boolean.
*/ */
public final void setOpponentTurn(final boolean bTurn) { public final void setOpponentTurn(final boolean bTurn) {
bOpponentTurn = bTurn; this.opponentTurn = bTurn;
} }
/** /**
@@ -292,7 +281,7 @@ public class SpellAbility_Variables {
* @return a boolean. * @return a boolean.
*/ */
public final boolean getOpponentTurn() { public final boolean getOpponentTurn() {
return bOpponentTurn; return this.isOpponentTurn();
} }
/** /**
@@ -304,7 +293,7 @@ public class SpellAbility_Variables {
* a int. * a int.
*/ */
public final void setActivationLimit(final int limit) { public final void setActivationLimit(final int limit) {
activationLimit = limit; this.activationLimit = limit;
} }
/** /**
@@ -313,7 +302,7 @@ public class SpellAbility_Variables {
* </p> * </p>
*/ */
public final void abilityActivated() { public final void abilityActivated() {
numberTurnActivations++; this.numberTurnActivations++;
} }
/** /**
@@ -324,7 +313,7 @@ public class SpellAbility_Variables {
* @return a int. * @return a int.
*/ */
public final int getNumberTurnActivations() { public final int getNumberTurnActivations() {
return numberTurnActivations; return this.numberTurnActivations;
} }
/** /**
@@ -333,7 +322,7 @@ public class SpellAbility_Variables {
* </p> * </p>
*/ */
public final void resetTurnActivations() { public final void resetTurnActivations() {
numberTurnActivations = 0; this.numberTurnActivations = 0;
} }
/** /**
@@ -345,7 +334,7 @@ public class SpellAbility_Variables {
* a int. * a int.
*/ */
public final void setActivationNumberSacrifice(final int num) { public final void setActivationNumberSacrifice(final int num) {
activationNumberSacrifice = num; this.activationNumberSacrifice = num;
} }
/** /**
@@ -356,7 +345,7 @@ public class SpellAbility_Variables {
* @return a int. * @return a int.
*/ */
public final int getActivationNumberSacrifice() { public final int getActivationNumberSacrifice() {
return activationNumberSacrifice; return this.activationNumberSacrifice;
} }
/** /**
@@ -368,8 +357,8 @@ public class SpellAbility_Variables {
* a {@link java.lang.String} object. * a {@link java.lang.String} object.
*/ */
public final void setPhases(final String phasesString) { public final void setPhases(final String phasesString) {
for (String s : phasesString.split(",")) { for (final String s : phasesString.split(",")) {
phases.add(s); this.phases.add(s);
} }
} }
@@ -382,7 +371,7 @@ public class SpellAbility_Variables {
* a int. * a int.
*/ */
public final void setActivateCardsInHand(final int cards) { public final void setActivateCardsInHand(final int cards) {
nCardsInHand = cards; this.setCardsInHand(cards);
} }
// specific named conditions // specific named conditions
@@ -395,7 +384,7 @@ public class SpellAbility_Variables {
* a boolean. * a boolean.
*/ */
public final void setHellbent(final boolean bHellbent) { public final void setHellbent(final boolean bHellbent) {
hellbent = bHellbent; this.hellbent = bHellbent;
} }
/** /**
@@ -407,7 +396,7 @@ public class SpellAbility_Variables {
* a boolean. * a boolean.
*/ */
public final void setThreshold(final boolean bThreshold) { public final void setThreshold(final boolean bThreshold) {
threshold = bThreshold; this.threshold = bThreshold;
} }
/** /**
@@ -419,7 +408,7 @@ public class SpellAbility_Variables {
* a boolean. * a boolean.
*/ */
public final void setMetalcraft(final boolean bMetalcraft) { public final void setMetalcraft(final boolean bMetalcraft) {
metalcraft = bMetalcraft; this.metalcraft = bMetalcraft;
} }
/** /**
@@ -431,7 +420,7 @@ public class SpellAbility_Variables {
* the new prowl * the new prowl
*/ */
public final void setProwl(final ArrayList<String> types) { public final void setProwl(final ArrayList<String> types) {
prowl = types; this.prowl = types;
} }
// IsPresent for Valid battlefield stuff // IsPresent for Valid battlefield stuff
@@ -445,7 +434,7 @@ public class SpellAbility_Variables {
* a {@link java.lang.String} object. * a {@link java.lang.String} object.
*/ */
public final void setIsPresent(final String present) { public final void setIsPresent(final String present) {
sIsPresent = present; this.isPresent = present;
} }
/** /**
@@ -457,7 +446,7 @@ public class SpellAbility_Variables {
* a {@link java.lang.String} object. * a {@link java.lang.String} object.
*/ */
public final void setPresentCompare(final String compare) { public final void setPresentCompare(final String compare) {
presentCompare = compare; this.presentCompare = compare;
} }
/** /**
@@ -466,7 +455,7 @@ public class SpellAbility_Variables {
* @return the present zone * @return the present zone
*/ */
public final Constant.Zone getPresentZone() { public final Constant.Zone getPresentZone() {
return presentZone; return this.presentZone;
} }
/** /**
@@ -488,7 +477,7 @@ public class SpellAbility_Variables {
* a {@link java.lang.String} object. * a {@link java.lang.String} object.
*/ */
public final void setPresentDefined(final String defined) { public final void setPresentDefined(final String defined) {
presentDefined = defined; this.presentDefined = defined;
} }
// used to define as a Planeswalker ability // used to define as a Planeswalker ability
@@ -501,7 +490,7 @@ public class SpellAbility_Variables {
* a boolean. * a boolean.
*/ */
public final void setPlaneswalker(final boolean bPlaneswalker) { public final void setPlaneswalker(final boolean bPlaneswalker) {
setPwAbility(bPlaneswalker); this.setPwAbility(bPlaneswalker);
} }
/** /**
@@ -512,7 +501,7 @@ public class SpellAbility_Variables {
* @return a boolean. * @return a boolean.
*/ */
public final boolean getPlaneswalker() { public final boolean getPlaneswalker() {
return isPwAbility(); return this.isPwAbility();
} }
// Checking the values of SVars (Mostly for Traps) // Checking the values of SVars (Mostly for Traps)
@@ -525,7 +514,7 @@ public class SpellAbility_Variables {
* a {@link java.lang.String} object. * a {@link java.lang.String} object.
*/ */
public final void setSvarToCheck(final String sVar) { public final void setSvarToCheck(final String sVar) {
svarToCheck = sVar; this.setsVarToCheck(sVar);
} }
/** /**
@@ -537,7 +526,7 @@ public class SpellAbility_Variables {
* a {@link java.lang.String} object. * a {@link java.lang.String} object.
*/ */
public final void setSvarOperator(final String operator) { public final void setSvarOperator(final String operator) {
svarOperator = operator; this.setsVarOperator(operator);
} }
/** /**
@@ -549,7 +538,7 @@ public class SpellAbility_Variables {
* a {@link java.lang.String} object. * a {@link java.lang.String} object.
*/ */
public final void setSvarOperand(final String operand) { public final void setSvarOperand(final String operand) {
svarOperand = operand; this.setsVarOperand(operand);
} }
/** /**
@@ -557,8 +546,8 @@ public class SpellAbility_Variables {
* *
* @return the activationLimit * @return the activationLimit
*/ */
public int getActivationLimit() { public final int getActivationLimit() {
return activationLimit; return this.activationLimit;
} }
/** /**
@@ -567,7 +556,7 @@ public class SpellAbility_Variables {
* @return the threshold * @return the threshold
*/ */
public final boolean isThreshold() { public final boolean isThreshold() {
return threshold; return this.threshold;
} }
/** /**
@@ -576,7 +565,7 @@ public class SpellAbility_Variables {
* @return the metalcraft * @return the metalcraft
*/ */
public final boolean isMetalcraft() { public final boolean isMetalcraft() {
return metalcraft; return this.metalcraft;
} }
/** /**
@@ -585,7 +574,7 @@ public class SpellAbility_Variables {
* @return the hellbent * @return the hellbent
*/ */
public final boolean isHellbent() { public final boolean isHellbent() {
return hellbent; return this.hellbent;
} }
/** /**
@@ -594,13 +583,14 @@ public class SpellAbility_Variables {
* @return the pwAbility * @return the pwAbility
*/ */
public final boolean isPwAbility() { public final boolean isPwAbility() {
return pwAbility; return this.pwAbility;
} }
/** /**
* Sets the pw ability. * Sets the pw ability.
* *
* @param pwAbility the new pw ability * @param pwAbility
* the new pw ability
*/ */
public final void setPwAbility(final boolean pwAbility) { public final void setPwAbility(final boolean pwAbility) {
this.pwAbility = pwAbility; // TODO Add 0 to parameter's name. this.pwAbility = pwAbility; // TODO Add 0 to parameter's name.
@@ -611,8 +601,8 @@ public class SpellAbility_Variables {
* *
* @return the playerTurn * @return the playerTurn
*/ */
public boolean isPlayerTurn() { public final boolean isPlayerTurn() {
return playerTurn; return this.playerTurn;
} }
/** /**
@@ -620,8 +610,8 @@ public class SpellAbility_Variables {
* *
* @return the prowl * @return the prowl
*/ */
public ArrayList<String> getProwl() { public final ArrayList<String> getProwl() {
return prowl; return this.prowl;
} }
/** /**
@@ -629,8 +619,8 @@ public class SpellAbility_Variables {
* *
* @return the presentCompare * @return the presentCompare
*/ */
public String getPresentCompare() { public final String getPresentCompare() {
return presentCompare; return this.presentCompare;
} }
/** /**
@@ -639,13 +629,14 @@ public class SpellAbility_Variables {
* @return the lifeTotal * @return the lifeTotal
*/ */
public final String getLifeTotal() { public final String getLifeTotal() {
return lifeTotal; return this.lifeTotal;
} }
/** /**
* Sets the life total. * Sets the life total.
* *
* @param lifeTotal the lifeTotal to set * @param lifeTotal
* the lifeTotal to set
*/ */
public final void setLifeTotal(final String lifeTotal) { public final void setLifeTotal(final String lifeTotal) {
this.lifeTotal = lifeTotal; // TODO Add 0 to parameter's name. this.lifeTotal = lifeTotal; // TODO Add 0 to parameter's name.
@@ -657,13 +648,14 @@ public class SpellAbility_Variables {
* @return the lifeAmount * @return the lifeAmount
*/ */
public final String getLifeAmount() { public final String getLifeAmount() {
return lifeAmount; return this.lifeAmount;
} }
/** /**
* Sets the life amount. * Sets the life amount.
* *
* @param lifeAmount the lifeAmount to set * @param lifeAmount
* the lifeAmount to set
*/ */
public final void setLifeAmount(final String lifeAmount) { public final void setLifeAmount(final String lifeAmount) {
this.lifeAmount = lifeAmount; // TODO Add 0 to parameter's name. this.lifeAmount = lifeAmount; // TODO Add 0 to parameter's name.
@@ -675,16 +667,143 @@ public class SpellAbility_Variables {
* @return the phases * @return the phases
*/ */
public final ArrayList<String> getPhases() { public final ArrayList<String> getPhases() {
return phases; return this.phases;
} }
/** /**
* Sets the phases. * Sets the phases.
* *
* @param phases the new phases * @param phases
* the new phases
*/ */
public final void setPhases(final ArrayList<String> phases) { public final void setPhases(final ArrayList<String> phases) {
this.phases = phases; // TODO Add 0 to parameter's name. this.phases = phases; // TODO Add 0 to parameter's name.
} }
/**
* Gets the present defined.
*
* @return the presentDefined
*/
public final String getPresentDefined() {
return this.presentDefined;
}
/**
* Checks if is all m12 empires.
*
* @return the allM12Empires
*/
public final boolean isAllM12Empires() {
return this.allM12Empires;
}
/**
* Checks if is not all m12 empires.
*
* @return the notAllM12Empires
*/
public final boolean isNotAllM12Empires() {
return this.notAllM12Empires;
}
/**
* Gets the s var operand.
*
* @return the sVarOperand
*/
public final String getsVarOperand() {
return this.sVarOperand;
}
/**
* Sets the s var operand.
*
* @param sVarOperand the sVarOperand to set
*/
public final void setsVarOperand(final String sVarOperand) {
this.sVarOperand = sVarOperand; // TODO Add 0 to parameter's name.
}
/**
* Gets the s var to check.
*
* @return the sVarToCheck
*/
public final String getsVarToCheck() {
return this.sVarToCheck;
}
/**
* Sets the s var to check.
*
* @param sVarToCheck the sVarToCheck to set
*/
public final void setsVarToCheck(final String sVarToCheck) {
this.sVarToCheck = sVarToCheck;
}
/**
* Gets the s var operator.
*
* @return the sVarOperator
*/
public final String getsVarOperator() {
return this.sVarOperator;
}
/**
* Sets the s var operator.
*
* @param sVarOperator the sVarOperator to set
*/
public final void setsVarOperator(final String sVarOperator) {
this.sVarOperator = sVarOperator; // TODO: Add 0 to parameter's name.
}
/**
* Checks if is opponent turn.
*
* @return the opponentTurn
*/
public final boolean isOpponentTurn() {
return this.opponentTurn;
}
/**
* Gets the cards in hand.
*
* @return the cardsInHand
*/
public final int getCardsInHand() {
return this.cardsInHand;
}
/**
* Sets the cards in hand.
*
* @param cardsInHand the cardsInHand to set
*/
public final void setCardsInHand(final int cardsInHand) {
this.cardsInHand = cardsInHand; // TODO: Add 0 to parameter's name.
}
/**
* Gets the checks if is present.
*
* @return the isPresent
*/
public final String getIsPresent() {
return this.isPresent;
}
/**
* Checks if is any player.
*
* @return the anyPlayer
*/
public final boolean isAnyPlayer() {
return anyPlayer;
}
} // end class SpellAbility_Variables } // end class SpellAbility_Variables