From d4699f3f0f537384c210d2b680b68d5f837f0c3e Mon Sep 17 00:00:00 2001 From: Doublestrike Date: Sun, 27 May 2012 01:34:54 +0000 Subject: [PATCH] Checkstyle. --- .../java/forge/quest/data/QuestAssets.java | 15 +-------------- .../forge/quest/data/QuestItemCondition.java | 19 ++++++++++++++----- 2 files changed, 15 insertions(+), 19 deletions(-) diff --git a/src/main/java/forge/quest/data/QuestAssets.java b/src/main/java/forge/quest/data/QuestAssets.java index a5c3dfbfbb2..dfc50cc9161 100644 --- a/src/main/java/forge/quest/data/QuestAssets.java +++ b/src/main/java/forge/quest/data/QuestAssets.java @@ -33,10 +33,7 @@ import forge.quest.QuestUtilCards; import forge.quest.bazaar.QuestItemType; import forge.quest.data.QuestPreferences.QPref; -/** - * TODO: Write javadoc for this type. - * - */ +/** */ public class QuestAssets { // Cards associated with quest @@ -125,8 +122,6 @@ public class QuestAssets { try { // care to set appropriate state class here cond = itemType.getModelClass().newInstance(); } catch (final Exception e) { - // TODO Auto-generated catch block ignores the exception, but - // sends it to System.err and probably forge.log. e.printStackTrace(); cond = new QuestItemCondition(); } @@ -136,8 +131,6 @@ public class QuestAssets { } /** - * - * TODO: Write javadoc for this method. * @param name String * @return int */ @@ -147,8 +140,6 @@ public class QuestAssets { } /** - * - * TODO: Write javadoc for this method. * @param name   String * @param extends QuestItemCondition * @return @@ -159,8 +150,6 @@ public class QuestAssets { } /** - * - * TODO: Write javadoc for this method. * @param name String * @param level int */ @@ -265,8 +254,6 @@ public class QuestAssets { } /** - * TODO: Write javadoc for this method. - * * @return the deck storage */ public QuestDeckMap getDeckStorage() { diff --git a/src/main/java/forge/quest/data/QuestItemCondition.java b/src/main/java/forge/quest/data/QuestItemCondition.java index 15de553740e..06827c8a8b5 100644 --- a/src/main/java/forge/quest/data/QuestItemCondition.java +++ b/src/main/java/forge/quest/data/QuestItemCondition.java @@ -6,22 +6,31 @@ package forge.quest.data; */ public class QuestItemCondition { private int level; + private boolean selected = false; - /** - * TODO: Write javadoc for this method. - * @return - */ + /** @return int */ public int getLevel() { return level; } + /** @param level int */ public void setLevel(int level) { this.level = level; } + /** @return boolean */ + public boolean isSelected() { + return selected; + } + + /** @param selected0   boolean */ + public void setSelected(boolean selected0) { + this.selected = selected0; + } + /** * Copy data from the parameter instance to 'this' instance. - * @param current + * @param source QuestItemCondition */ public void takeDataFrom(QuestItemCondition source) { this.level = source.level;