From 0136e9d5f1565d42fe6dd194f12c36b9fe1f29db Mon Sep 17 00:00:00 2001 From: Doublestrike Date: Sun, 11 Sep 2011 06:15:21 +0000 Subject: [PATCH] Javadoc and functionality comments updated. --- src/main/java/forge/Quest_Assignment.java | 329 ++++++++++++---------- 1 file changed, 175 insertions(+), 154 deletions(-) diff --git a/src/main/java/forge/Quest_Assignment.java b/src/main/java/forge/Quest_Assignment.java index 3234301f9b0..ae7d4be5141 100644 --- a/src/main/java/forge/Quest_Assignment.java +++ b/src/main/java/forge/Quest_Assignment.java @@ -6,6 +6,8 @@ import forge.card.CardPrinted; /** *

Quest_Assignment class.

+ * An instance of a single quest assignment. Holds values that aren't defined in + * Deck class, such as credit reward. * * @author Forge * @version $Id$ @@ -29,6 +31,165 @@ public class Quest_Assignment { private CardList humanExtraCards = new CardList(); private CardList aiExtraCards = new CardList(); private ArrayList cardRewardList = new ArrayList(); + + // No constructor required; fields are set dynamically. + + // Setters and getters, in alphabetical order. + + /** + *

Setter for the field aiExtraCards.

+ * Sets list of cards automatically played at start of match. + * + * @param s a CardList object. + */ + public final void setAIExtraCards(final CardList cl) { + this.aiExtraCards = cl; + } + + /** + *

Getter for the field aiExtraCards.

+ * Gets list of cards automatically played at start of match. + * + * @return a {@link java.util.ArrayList} object. + */ + public final CardList getAIExtraCards() { + return aiExtraCards; + } + /** + *

Setter for the field cardReward.

+ * Sets string notated card reward received if match is won. + * + * @param cardRewardIn a {@link java.lang.String} object. + */ + public final void setCardReward(final String cardRewardIn) { + this.cardReward = cardRewardIn; + } + + /** + *

Getter for the field cardReward.

+ * Gets string notated card reward received if match is won. + * + * @return a {@link java.lang.String} object. + */ + public final String getCardReward() { + return cardReward; + } + + /** + *

Setter for the field cardRewardList.

+ * Sets card reward list for cards received if match is won. + * + * @return a {@link java.util.ArrayList} object. + */ + public void setCardRewardList(final ArrayList cp) { + this.cardRewardList = cp; + } + + /** + *

Getter for the field cardRewardList.

+ * Gets card reward list for cards received if match is won. + * + * @return a {@link java.util.ArrayList} object. + */ + public final ArrayList getCardRewardList() { + return cardRewardList; + } + + /** + *

Setter for the field computerLife.

+ * Sets computer life at start of match. + * + * @param computerLifeIn a int. + */ + public final void setComputerLife(final int computerLifeIn) { + this.computerLife = computerLifeIn; + } + + /** + *

Getter for the field computerLife.

+ * Gets computer life at start of match. + * + * @return a int. + */ + public final int getComputerLife() { + return computerLife; + } + + /** + *

Setter for the field creditsReward.

+ * Sets credit reward received if match is won. + * + * @param creditsRewardIn a long. + */ + public final void setCreditsReward(final long creditsRewardIn) { + this.creditsReward = creditsRewardIn; + } + + /** + *

Getter for the field creditsReward.

+ * Gets credit reward received if match is won. + * + * @return a long. + */ + public final long getCreditsReward() { + return creditsReward; + } + + /** + *

Setter for the field desc.

+ * + * @param descIn a {@link java.lang.String} object. + */ + public final void setDesc(final String descIn) { + this.desc = descIn; + } + + /** + *

Getter for the field desc.

+ * + * @return a {@link java.lang.String} object. + */ + public final String getDesc() { + return desc; + } + + /** + *

Setter for the field difficulty.

+ * + * @param difficultyIn a {@link java.lang.String} object. + */ + public final void setDifficulty(final String difficultyIn) { + this.difficulty = difficultyIn; + } + + /** + *

Setter for the field humanExtraCards.

+ * Sets list of cards automatically played at start of match. + * + * @param s a CardList object. + */ + public final void setHumanExtraCards(final CardList cl) { + this.humanExtraCards = cl; + } + + /** + *

Getter for the field humanExtraCards.

+ * Gets list of cards automatically played at start of match. + * + * @return a {@link forge.CardList} object. + */ + public final CardList getHumanExtraCards() { + return humanExtraCards; + } + + /** + *

Getter for the field difficulty.

+ * + * @return a {@link java.lang.String} object. + */ + public final String getDifficulty() { + return difficulty; + } /** *

Setter for the field id.

@@ -47,23 +208,25 @@ public class Quest_Assignment { public final int getId() { return id; } - + /** - *

Setter for the field creditsReward.

+ *

Setter for the field iconName.

+ * Sets filename of icon used when displaying this quest. * - * @param creditsRewardIn a long. + * @param s a {@link java.lang.String} object. */ - public final void setCreditsReward(final long creditsRewardIn) { - this.creditsReward = creditsRewardIn; + public final void setIconName(final String s) { + iconName = s; } /** - *

Getter for the field creditsReward.

+ *

Getter for the field iconName.

+ * Gets filename of icon used when displaying this quest. * - * @return a long. + * @return a {@link java.lang.String} object. */ - public final long getCreditsReward() { - return creditsReward; + public final String getIconName() { + return iconName; } /** @@ -84,42 +247,6 @@ public class Quest_Assignment { return name; } - /** - *

Setter for the field desc.

- * - * @param descIn a {@link java.lang.String} object. - */ - public final void setDesc(final String descIn) { - this.desc = descIn; - } - - /** - *

Getter for the field desc.

- * - * @return a {@link java.lang.String} object. - */ - public final String getDesc() { - return desc; - } - - /** - *

Setter for the field difficulty.

- * - * @param difficultyIn a {@link java.lang.String} object. - */ - public final void setDifficulty(final String difficultyIn) { - this.difficulty = difficultyIn; - } - - /** - *

Getter for the field difficulty.

- * - * @return a {@link java.lang.String} object. - */ - public final String getDifficulty() { - return difficulty; - } - /** *

Setter for the field repeatable.

* @@ -140,6 +267,7 @@ public class Quest_Assignment { /** *

Setter for the field requiredNumberWins.

+ * Sets number of wins required to unlock this quest. * * @param requiredNumberWinsIn a int. */ @@ -149,119 +277,12 @@ public class Quest_Assignment { /** *

Getter for the field requiredNumberWins.

+ * Gets number of wins required to unlock this quest. * * @return a int. */ public final int getRequiredNumberWins() { return requiredNumberWins; - } - - /** - *

Setter for the field computerLife.

- * - * @param computerLifeIn a int. - */ - public final void setComputerLife(final int computerLifeIn) { - this.computerLife = computerLifeIn; - } - - /** - *

Getter for the field computerLife.

- * - * @return a int. - */ - public final int getComputerLife() { - return computerLife; - } - - /** - *

Setter for the field cardReward.

- * - * @param cardRewardIn a {@link java.lang.String} object. - */ - public final void setCardReward(final String cardRewardIn) { - this.cardReward = cardRewardIn; - } - - /** - *

Getter for the field cardReward.

- * - * @return a {@link java.lang.String} object. - */ - public final String getCardReward() { - return cardReward; - } - - /** - *

Setter for the field iconName.

- * - * @param s a {@link java.lang.String} object. - */ - public final void setIconName(final String s) { - iconName = s; - } - - /** - *

Getter for the field iconName.

- * - * @return a {@link java.lang.String} object. - */ - public final String getIconName() { - return iconName; - } - - /** - *

Setter for the field humanExtraCards.

- * - * @param s a CardList object. - */ - public final void setHumanExtraCards(final CardList cl) { - this.humanExtraCards = cl; - } - - /** - *

Getter for the field humanExtraCards.

- * - * @return a {@link forge.CardList} object. - */ - public final CardList getHumanExtraCards() { - return humanExtraCards; - } - - /** - *

Setter for the field aiExtraCards.

- * - * @param s a CardList object. - */ - public final void setAIExtraCards(final CardList cl) { - this.aiExtraCards = cl; - } - - /** - *

Getter for the field compy.

- * - * @return a {@link java.util.ArrayList} object. - */ - public final CardList getAIExtraCards() { - return aiExtraCards; - } - - /** - *

Setter for the field cardRewardList.

- * - * @return a {@link java.util.ArrayList} object. - */ - public void setCardRewardList(final ArrayList cp) { - this.cardRewardList = cp; - } - - /** - *

Getter for the field cardRewardList.

- * - * @return a {@link java.util.ArrayList} object. - */ - public final ArrayList getCardRewardList() { - return cardRewardList; - } + } }