diff --git a/src/main/java/forge/properties/ForgePreferences.java b/src/main/java/forge/properties/ForgePreferences.java index 824f27cae82..4453ba42819 100644 --- a/src/main/java/forge/properties/ForgePreferences.java +++ b/src/main/java/forge/properties/ForgePreferences.java @@ -8,7 +8,6 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -// TODO: Auto-generated Javadoc /** *
* ForgePreferences class. diff --git a/src/main/java/forge/properties/NewConstants.java b/src/main/java/forge/properties/NewConstants.java index 04a46dd8e37..3eb72fc8212 100644 --- a/src/main/java/forge/properties/NewConstants.java +++ b/src/main/java/forge/properties/NewConstants.java @@ -1,6 +1,5 @@ package forge.properties; -// TODO: Auto-generated Javadoc /** * NewConstants.java * diff --git a/src/main/java/forge/quest/data/pet/QuestPetAbstract.java b/src/main/java/forge/quest/data/pet/QuestPetAbstract.java index 4df04ac2604..b0f1aa3daac 100644 --- a/src/main/java/forge/quest/data/pet/QuestPetAbstract.java +++ b/src/main/java/forge/quest/data/pet/QuestPetAbstract.java @@ -6,202 +6,247 @@ import forge.quest.data.bazaar.QuestStallManager; import forge.quest.data.bazaar.QuestStallPurchasable; /** - *
Abstract QuestPetAbstract class.
- * + *+ * Abstract QuestPetAbstract class. + *
+ * * @author Forge * @version $Id$ */ public abstract class QuestPetAbstract implements QuestStallPurchasable { + + /** The level. */ int level; private int maxLevel; // transient here ? - private String name; + private String name; private String description; /** - *getPetCard.
- * + *+ * getPetCard. + *
+ * * @return a {@link forge.Card} object. */ public abstract Card getPetCard(); /** - *getAllUpgradePrices.
- * + *+ * getAllUpgradePrices. + *
+ * * @return an array of int. */ public abstract int[] getAllUpgradePrices(); /** - *getPrice.
- * + *+ * getPrice. + *
+ * * @return a int. */ - public int getPrice() { + public final int getPrice() { return getAllUpgradePrices()[level]; } /** - *getAllUpgradeDescriptions.
- * + *+ * getAllUpgradeDescriptions. + *
+ * * @return an array of {@link java.lang.String} objects. */ public abstract String[] getAllUpgradeDescriptions(); /** - *getUpgradeDescription.
- * + *+ * getUpgradeDescription. + *
+ * * @return a {@link java.lang.String} object. */ - public String getUpgradeDescription() { + public final String getUpgradeDescription() { return getAllUpgradeDescriptions()[level]; } - /** - *getAllImageNames.
- * + *+ * getAllImageNames. + *
+ * * @return an array of {@link java.lang.String} objects. */ public abstract String[] getAllImageNames(); /** - *getImageName.
- * + *+ * getImageName. + *
+ * * @return a {@link java.lang.String} object. */ - public String getImageName() { + public final String getImageName() { return getAllImageNames()[level]; } /** - *getAllStats.
- * + *+ * getAllStats. + *
+ * * @return an array of {@link java.lang.String} objects. */ public abstract String[] getAllStats(); /** - *getStats.
- * + *+ * getStats. + *
+ * * @return a {@link java.lang.String} object. */ - public String getStats() { + public final String getStats() { return getAllStats()[level]; } /** - *getUpgradedStats.
- * + *+ * getUpgradedStats. + *
+ * * @return a {@link java.lang.String} object. */ - public String getUpgradedStats() { + public final String getUpgradedStats() { return getAllStats()[level + 1]; } - /** - *Getter for the field level.
+ * Getter for the field level.
+ *
incrementLevel.
+ *+ * incrementLevel. + *
*/ - public void incrementLevel() { + public final void incrementLevel() { if (level < maxLevel) { level++; } } /** - *Getter for the field maxLevel.
+ * Getter for the field maxLevel.
+ *
Constructor for QuestPetAbstract.
- * - * @param name a {@link java.lang.String} object. - * @param description a {@link java.lang.String} object. - * @param maxLevel a int. + *+ * Constructor for QuestPetAbstract. + *
+ * + * @param name + * a {@link java.lang.String} object. + * @param description + * a {@link java.lang.String} object. + * @param maxLevel + * a int. */ - protected QuestPetAbstract(String name, String description, int maxLevel) { + protected QuestPetAbstract(final String name, final String description, final int maxLevel) { this.description = description; this.name = name; this.maxLevel = maxLevel; } /** - *Setter for the field level.
+ * Setter for the field level.
+ *
getPurchaseDescription.
- * + *+ * getPurchaseDescription. + *
+ * * @return a {@link java.lang.String} object. */ - public String getPurchaseDescription() { - return "" + getDescription() + "Getter for the field description.
+ * Getter for the field description.
+ *
Getter for the field name.
+ * Getter for the field name.
+ *
getPurchaseName.
- * + *+ * getPurchaseName. + *
+ * * @return a {@link java.lang.String} object. */ - public String getPurchaseName() { + public final String getPurchaseName() { return name; } /** - *getStallName.
- * + *+ * getStallName. + *
+ * * @return a {@link java.lang.String} object. */ public String getStallName() { @@ -209,8 +254,10 @@ public abstract class QuestPetAbstract implements QuestStallPurchasable { } /** - *isAvailableForPurchase.
- * + *+ * isAvailableForPurchase. + *
+ * * @return a boolean. */ public boolean isAvailableForPurchase() { @@ -222,7 +269,9 @@ public abstract class QuestPetAbstract implements QuestStallPurchasable { } /** - *onPurchase.
+ *+ * onPurchase. + *
*/ public void onPurchase() { AllZone.getQuestData().getPetManager().addPetLevel(name); diff --git a/src/main/java/forge/quest/data/pet/QuestPetBird.java b/src/main/java/forge/quest/data/pet/QuestPetBird.java index 41e7e4051f9..16d5b322f26 100644 --- a/src/main/java/forge/quest/data/pet/QuestPetBird.java +++ b/src/main/java/forge/quest/data/pet/QuestPetBird.java @@ -4,15 +4,17 @@ import forge.AllZone; import forge.Card; /** - *QuestPetBird class.
- * + *+ * QuestPetBird class. + *
+ * * @author Forge * @version $Id$ */ public class QuestPetBird extends QuestPetAbstract { /** {@inheritDoc} */ @Override - public Card getPetCard() { + public final Card getPetCard() { Card petCard = new Card(); petCard.setName("Bird Pet"); @@ -28,7 +30,6 @@ public class QuestPetBird extends QuestPetAbstract { petCard.addIntrinsicKeyword("Flying"); - if (level == 1) { petCard.setImageName("W 0 1 Bird Pet"); petCard.setBaseAttack(0); @@ -52,50 +53,39 @@ public class QuestPetBird extends QuestPetAbstract { } /** - *Constructor for QuestPetBird.
+ *+ * Constructor for QuestPetBird. + *
*/ public QuestPetBird() { - super("Bird", - "Unmatched in speed, agility and awareness, this trained hawk makes a fantastic hunter.", - 4); + super("Bird", "Unmatched in speed, agility and awareness, this trained hawk makes a fantastic hunter.", 4); } /** {@inheritDoc} */ @Override - public int[] getAllUpgradePrices() { - return new int[]{200, 300, 450, 400}; + public final int[] getAllUpgradePrices() { + return new int[] { 200, 300, 450, 400 }; } /** {@inheritDoc} */ @Override - public String[] getAllUpgradeDescriptions() { - return new String[]{ - "Purchase Bird", - "Improve the attack power of your bird.", - "Improve the attack power of your bird.", - "Give First Strike to your bird.", + public final String[] getAllUpgradeDescriptions() { + return new String[] {"Purchase Bird", "Improve the attack power of your bird.", + "Improve the attack power of your bird.", "Give First Strike to your bird.", "You cannot train your bird any further"}; } /** {@inheritDoc} */ @Override - public String[] getAllStats() { - return new String[]{"You do not own a bird", - "0/1, W, Flying", - "1/1, W, Flying", - "2/1, W, Flying", + public final String[] getAllStats() { + return new String[] {"You do not own a bird", "0/1, W, Flying", "1/1, W, Flying", "2/1, W, Flying", "2/1, W, Flying, First Strike"}; } /** {@inheritDoc} */ @Override - public String[] getAllImageNames() { - return new String[]{ - "", - "w_0_1_bird_pet_small.jpg", - "w_1_1_bird_pet_small.jpg", - "w_2_1_bird_pet_small.jpg", - "w_2_1_bird_pet_first_strike_small.jpg" - }; + public final String[] getAllImageNames() { + return new String[] {"", "w_0_1_bird_pet_small.jpg", "w_1_1_bird_pet_small.jpg", "w_2_1_bird_pet_small.jpg", + "w_2_1_bird_pet_first_strike_small.jpg"}; } } diff --git a/src/main/java/forge/quest/data/pet/QuestPetCrocodile.java b/src/main/java/forge/quest/data/pet/QuestPetCrocodile.java index 04c3dfbc9f0..b45a2781b9f 100644 --- a/src/main/java/forge/quest/data/pet/QuestPetCrocodile.java +++ b/src/main/java/forge/quest/data/pet/QuestPetCrocodile.java @@ -4,15 +4,17 @@ import forge.AllZone; import forge.Card; /** - *QuestPetCrocodile class.
- * + *+ * QuestPetCrocodile class. + *
+ * * @author Forge * @version $Id$ */ public class QuestPetCrocodile extends QuestPetAbstract { /** {@inheritDoc} */ @Override - public Card getPetCard() { + public final Card getPetCard() { Card petCard = new Card(); petCard.setName("Crocodile Pet"); petCard.addController(AllZone.getHumanPlayer()); @@ -44,55 +46,42 @@ public class QuestPetCrocodile extends QuestPetAbstract { petCard.addIntrinsicKeyword("Swampwalk"); } - return petCard; } /** - *Constructor for QuestPetCrocodile.
+ *+ * Constructor for QuestPetCrocodile. + *
*/ public QuestPetCrocodile() { - super("Crocodile", - "With its razor sharp teeth, this swamp-dwelling monster is extremely dangerous.", - 4); + super("Crocodile", "With its razor sharp teeth, this swamp-dwelling monster is extremely dangerous.", 4); } /** {@inheritDoc} */ @Override - public int[] getAllUpgradePrices() { - return new int[]{250, 300, 450, 600}; + public final int[] getAllUpgradePrices() { + return new int[] { 250, 300, 450, 600 }; } /** {@inheritDoc} */ @Override - public String[] getAllUpgradeDescriptions() { - return new String[]{ - "Purchase Crocodile", - "Improve the attack power of your crocodile.", - "Improve the attack power of your crocodile.", - "Give Swampwalking to your crocodile.", + public final String[] getAllUpgradeDescriptions() { + return new String[] {"Purchase Crocodile", "Improve the attack power of your crocodile.", + "Improve the attack power of your crocodile.", "Give Swampwalking to your crocodile.", "You cannot train your crocodile any further"}; } /** {@inheritDoc} */ @Override - public String[] getAllStats() { - return new String[]{"You do not own a crocodile", - "1/1, B", - "2/1, B", - "3/1, B", - "3/1, B, Swampwalking"}; + public final String[] getAllStats() { + return new String[] {"You do not own a crocodile", "1/1, B", "2/1, B", "3/1, B", "3/1, B, Swampwalking"}; } /** {@inheritDoc} */ @Override - public String[] getAllImageNames() { - return new String[]{ - "", - "b_1_1_crocodile_pet_small.jpg", - "b_2_1_crocodile_pet_small.jpg", - "b_3_1_crocodile_pet_small.jpg", - "b_3_1_crocodile_pet_swampwalk_small.jpg" - }; + public final String[] getAllImageNames() { + return new String[] {"", "b_1_1_crocodile_pet_small.jpg", "b_2_1_crocodile_pet_small.jpg", + "b_3_1_crocodile_pet_small.jpg", "b_3_1_crocodile_pet_swampwalk_small.jpg"}; } } diff --git a/src/main/java/forge/quest/data/pet/QuestPetHound.java b/src/main/java/forge/quest/data/pet/QuestPetHound.java index 90b154e495a..1f0d551d6df 100644 --- a/src/main/java/forge/quest/data/pet/QuestPetHound.java +++ b/src/main/java/forge/quest/data/pet/QuestPetHound.java @@ -7,14 +7,18 @@ import forge.card.trigger.Trigger; import forge.card.trigger.TriggerHandler; /** - *QuestPetHound class.
- * + *+ * QuestPetHound class. + *
+ * * @author Forge * @version $Id$ */ public class QuestPetHound extends QuestPetAbstract { /** - *Constructor for QuestPetHound.
+ *+ * Constructor for QuestPetHound. + *
*/ public QuestPetHound() { super("Hound", "Dogs are said to be man's best friend. Definitely not this one.", 4); @@ -22,7 +26,7 @@ public class QuestPetHound extends QuestPetAbstract { /** {@inheritDoc} */ @Override - public Card getPetCard() { + public final Card getPetCard() { Card petCard = new Card(); petCard.setName("Hound Pet"); @@ -57,52 +61,43 @@ public class QuestPetHound extends QuestPetAbstract { petCard.setBaseDefense(1); petCard.addIntrinsicKeyword("Haste"); - final Trigger myTrigger = TriggerHandler.parseTrigger("Mode$ Attacks | ValidCard$ Card.Self | Alone$ True | TriggerDescription$ Whenever CARDNAME attacks alone, it gets +2/+0 until end of turn.", petCard,true); + final Trigger myTrigger = TriggerHandler + .parseTrigger( + "Mode$ Attacks | ValidCard$ Card.Self | Alone$ True | TriggerDescription$ Whenever CARDNAME attacks alone, it gets +2/+0 until end of turn.", + petCard, true); AbilityFactory af = new AbilityFactory(); myTrigger.setOverridingAbility(af.getAbility("AB$Pump | Cost$ 0 | Defined$ Self | NumAtt$ 2", petCard)); petCard.addTrigger(myTrigger); } - return petCard; } /** {@inheritDoc} */ @Override - public int[] getAllUpgradePrices() { - return new int[]{200, 350, 450, 750}; + public final int[] getAllUpgradePrices() { + return new int[] { 200, 350, 450, 750 }; } /** {@inheritDoc} */ @Override - public String[] getAllUpgradeDescriptions() { - return new String[]{ - "Purchase hound", - "Give Haste to your hound.", - "Improve the attack power of your hound.", + public final String[] getAllUpgradeDescriptions() { + return new String[] {"Purchase hound", "Give Haste to your hound.", "Improve the attack power of your hound.", "Greatly improves your hound's attack power if it attacks alone.", "You cannot train your hound any further"}; } /** {@inheritDoc} */ @Override - public String[] getAllStats() { - return new String[]{"You do not own a hound", - "1/1, R", - "1/1, R, Haste", - "2/1, R, Haste", + public final String[] getAllStats() { + return new String[] {"You do not own a hound", "1/1, R", "1/1, R, Haste", "2/1, R, Haste", "2/1, R, Haste, Whenever this creature attacks alone, it gets +2/+0 until end of turn."}; } /** {@inheritDoc} */ @Override - public String[] getAllImageNames() { - return new String[]{ - "", - "r_1_1_hound_pet_small.jpg", - "r_1_1_hound_pet_haste_small.jpg", - "r_2_1_hound_pet_small.jpg", - "r_2_1_hound_pet_alone_small.jpg" - }; + public final String[] getAllImageNames() { + return new String[] {"", "r_1_1_hound_pet_small.jpg", "r_1_1_hound_pet_haste_small.jpg", + "r_2_1_hound_pet_small.jpg", "r_2_1_hound_pet_alone_small.jpg"}; } } diff --git a/src/main/java/forge/quest/data/pet/QuestPetManager.java b/src/main/java/forge/quest/data/pet/QuestPetManager.java index 8897f676ed7..6ceafb1b87d 100644 --- a/src/main/java/forge/quest/data/pet/QuestPetManager.java +++ b/src/main/java/forge/quest/data/pet/QuestPetManager.java @@ -1,22 +1,39 @@ package forge.quest.data.pet; -import java.util.*; +import java.util.Collection; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Set; +import java.util.SortedSet; +import java.util.TreeSet; /** - *QuestPetManager class.
- * + *+ * QuestPetManager class. + *
+ * * @author Forge * @version $Id$ */ public class QuestPetManager { + /** The pets. */ public MapConstructor for QuestPetManager.
+ *+ * Constructor for QuestPetManager. + *
*/ public QuestPetManager() { plant = new QuestPetPlant(); @@ -26,36 +43,45 @@ public class QuestPetManager { } /** - *Setter for the field selectedPet.
+ * Setter for the field selectedPet.
+ *
Getter for the field selectedPet.
+ * Getter for the field selectedPet.
+ *
Getter for the field plant.
+ * Getter for the field plant.
+ *
addPlantLevel.
+ *+ * addPlantLevel. + *
*/ - public void addPlantLevel() { + public final void addPlantLevel() { if (plant == null) { plant = new QuestPetPlant(); } else { @@ -64,64 +90,81 @@ public class QuestPetManager { } /** - *getPet.
- * - * @param petName a {@link java.lang.String} object. + *+ * getPet. + *
+ * + * @param petName + * a {@link java.lang.String} object. * @return a {@link forge.quest.data.pet.QuestPetAbstract} object. */ - public QuestPetAbstract getPet(String petName) { + public final QuestPetAbstract getPet(final String petName) { return pets.get(petName); } /** - *addPet.
- * - * @param newPet a {@link forge.quest.data.pet.QuestPetAbstract} object. + *+ * addPet. + *
+ * + * @param newPet + * a {@link forge.quest.data.pet.QuestPetAbstract} object. */ - public void addPet(QuestPetAbstract newPet) { + public final void addPet(final QuestPetAbstract newPet) { pets.put(newPet.getName(), newPet); } /** - *getPetNames.
- * + *+ * getPetNames. + *
+ * * @return a {@link java.util.Set} object. */ - public SetaddPetLevel.
- * - * @param s a {@link java.lang.String} object. + *+ * addPetLevel. + *
+ * + * @param s + * a {@link java.lang.String} object. */ - public void addPetLevel(String s) { + public final void addPetLevel(final String s) { pets.get(s).incrementLevel(); } /** - *shouldPlantBeUsed.
- * + *+ * shouldPlantBeUsed. + *
+ * * @return a boolean. */ - public boolean shouldPlantBeUsed() { + public final boolean shouldPlantBeUsed() { return usePlant; } /** - *shouldPetBeUsed.
- * + *+ * shouldPetBeUsed. + *
+ * * @return a boolean. */ - public boolean shouldPetBeUsed() { + public final boolean shouldPetBeUsed() { return selectedPet != null; } /** - *getAllPets.
- * + *+ * getAllPets. + *
+ * * @return a {@link java.util.Set} object. */ private static SetgetAvailablePetNames.
- * + *+ * getAvailablePetNames. + *
+ * * @return a {@link java.util.Set} object. */ - public SetgetPetsAndPlants.
- * + *+ * getPetsAndPlants. + *
+ * * @return a {@link java.util.Collection} object. */ - public CollectionreadResolve.
- * + *+ * readResolve. + *
+ * * @return a {@link java.lang.Object} object. */ private Object readResolve() { diff --git a/src/main/java/forge/quest/data/pet/QuestPetPlant.java b/src/main/java/forge/quest/data/pet/QuestPetPlant.java index fa330aaff0b..65fe0354bf0 100644 --- a/src/main/java/forge/quest/data/pet/QuestPetPlant.java +++ b/src/main/java/forge/quest/data/pet/QuestPetPlant.java @@ -9,15 +9,17 @@ import forge.card.spellability.SpellAbility; import forge.quest.data.bazaar.QuestStallManager; /** - *QuestPetPlant class.
- * + *+ * QuestPetPlant class. + *
+ * * @author Forge * @version $Id$ */ public class QuestPetPlant extends QuestPetAbstract { /** {@inheritDoc} */ @Override - public Card getPetCard() { + public final Card getPetCard() { final Card petCard = new Card(); petCard.setName("Plant Wall"); @@ -62,7 +64,6 @@ public class QuestPetPlant extends QuestPetAbstract { petCard.setBaseDefense(4); petCard.addIntrinsicKeyword("Deathtouch"); - Cost abCost = new Cost("T", petCard.getName(), true); final SpellAbility ability = new Ability_Activated(petCard, abCost, null) { private static final long serialVersionUID = 7546242087593613719L; @@ -87,79 +88,67 @@ public class QuestPetPlant extends QuestPetAbstract { petCard.setText("tap: You gain 1 life."); } - return petCard; } /** - *Constructor for QuestPetPlant.
+ *+ * Constructor for QuestPetPlant. + *
*/ public QuestPetPlant() { - super("Plant", + super( + "Plant", "Start each of your battles with this lush, verdant plant on your side. Excellent at blocking the nastiest of critters!", 6); } /** {@inheritDoc} */ @Override - public int[] getAllUpgradePrices() { - return new int[]{100, 150, 200, 300, 750, 1000}; + public final int[] getAllUpgradePrices() { + return new int[] { 100, 150, 200, 300, 750, 1000 }; } /** {@inheritDoc} */ @Override - public String[] getAllUpgradeDescriptions() { - return new String[]{ - "Purchase Plant", - "Improve the defense power of your plant.", - "Improve the defense power of your plant.", - "Improve the defense power of your plant.", + public final String[] getAllUpgradeDescriptions() { + return new String[] { "Purchase Plant", "Improve the defense power of your plant.", + "Improve the defense power of your plant.", "Improve the defense power of your plant.", "Grow venomous thorns on your plant.", "Improve the defense power of your plant and your plant will have healing properties", - "You cannot train your plant any further"}; + "You cannot train your plant any further" }; } /** {@inheritDoc} */ @Override - public String[] getAllStats() { - return new String[]{"You do not own a plant", - "0/1, G, Defender", - "0/2, G, Defender", - "0/3, G, Defender", - "1/3, G, Defender", - "1/3, G, Defender, Deathtouch", - "1/4, G, Defender, Deathtouch, T: Gain 1 life"}; + public final String[] getAllStats() { + return new String[] { "You do not own a plant", "0/1, G, Defender", "0/2, G, Defender", "0/3, G, Defender", + "1/3, G, Defender", "1/3, G, Defender, Deathtouch", "1/4, G, Defender, Deathtouch, T: Gain 1 life" }; } /** {@inheritDoc} */ @Override - public String[] getAllImageNames() { - return new String[]{ - "", - "g_0_1_plant_wall_small.jpg", - "g_0_2_plant_wall_small.jpg", - "g_0_3_plant_wall_small.jpg", - "g_1_3_plant_wall_small.jpg", - "g_1_3_plant_wall_deathtouch_small", - "g_1_4_plant_wall_small.jpg" - }; + public final String[] getAllImageNames() { + return new String[] { "", "g_0_1_plant_wall_small.jpg", "g_0_2_plant_wall_small.jpg", + "g_0_3_plant_wall_small.jpg", "g_1_3_plant_wall_small.jpg", "g_1_3_plant_wall_deathtouch_small", + "g_1_4_plant_wall_small.jpg" }; } /** {@inheritDoc} */ @Override - public String getStallName() { + public final String getStallName() { return QuestStallManager.NURSERY; } /** {@inheritDoc} */ @Override - public void onPurchase() { + public final void onPurchase() { AllZone.getQuestData().getPetManager().addPlantLevel(); } /** {@inheritDoc} */ @Override - public boolean isAvailableForPurchase() { + public final boolean isAvailableForPurchase() { QuestPetPlant plant = (QuestPetPlant) AllZone.getQuestData().getPetManager().getPlant(); return plant == null || plant.getLevel() < plant.getMaxLevel(); diff --git a/src/main/java/forge/quest/data/pet/QuestPetWolf.java b/src/main/java/forge/quest/data/pet/QuestPetWolf.java index 32ca80036dd..7b178a49557 100644 --- a/src/main/java/forge/quest/data/pet/QuestPetWolf.java +++ b/src/main/java/forge/quest/data/pet/QuestPetWolf.java @@ -4,15 +4,17 @@ import forge.AllZone; import forge.Card; /** - *QuestPetWolf class.
- * + *+ * QuestPetWolf class. + *
+ * * @author Forge * @version $Id$ */ public class QuestPetWolf extends QuestPetAbstract { /** {@inheritDoc} */ @Override - public Card getPetCard() { + public final Card getPetCard() { Card petCard = new Card(); petCard.setName("Wolf Pet"); @@ -49,50 +51,38 @@ public class QuestPetWolf extends QuestPetAbstract { } /** - *Constructor for QuestPetWolf.
+ *+ * Constructor for QuestPetWolf. + *
*/ public QuestPetWolf() { - super("Wolf", - "This ferocious animal may have been raised in captivity, but it has been trained to kill.", - 4); + super("Wolf", "This ferocious animal may have been raised in captivity, but it has been trained to kill.", 4); } /** {@inheritDoc} */ @Override - public int[] getAllUpgradePrices() { - return new int[]{250, 250, 500, 550}; + public final int[] getAllUpgradePrices() { + return new int[] { 250, 250, 500, 550 }; } /** {@inheritDoc} */ @Override - public String[] getAllUpgradeDescriptions() { - return new String[]{ - "Purchase Wolf", - "Improve the attack power of your wolf.", - "Improve the defense power of your wolf.", - "Give Flanking to your wolf.", + public final String[] getAllUpgradeDescriptions() { + return new String[] {"Purchase Wolf", "Improve the attack power of your wolf.", + "Improve the defense power of your wolf.", "Give Flanking to your wolf.", "You cannot train your wolf any further"}; } /** {@inheritDoc} */ @Override - public String[] getAllStats() { - return new String[]{"You do not own a wolf", - "1/1, G", - "1/2, G", - "2/2, G", - "2/2, G, Flanking"}; + public final String[] getAllStats() { + return new String[] {"You do not own a wolf", "1/1, G", "1/2, G", "2/2, G", "2/2, G, Flanking"}; } /** {@inheritDoc} */ @Override - public String[] getAllImageNames() { - return new String[]{ - "", - "g_1_1_wolf_pet_small.jpg", - "g_1_2_wolf_pet_small.jpg", - "g_2_2_wolf_pet_small.jpg", - "g_2_2_wolf_pet_flanking_small.jpg" - }; + public final String[] getAllImageNames() { + return new String[] {"", "g_1_1_wolf_pet_small.jpg", "g_1_2_wolf_pet_small.jpg", "g_2_2_wolf_pet_small.jpg", + "g_2_2_wolf_pet_flanking_small.jpg"}; } } diff --git a/src/main/java/forge/quest/data/pet/package-info.java b/src/main/java/forge/quest/data/pet/package-info.java index 24b34eb54d2..c01df025462 100644 --- a/src/main/java/forge/quest/data/pet/package-info.java +++ b/src/main/java/forge/quest/data/pet/package-info.java @@ -1,2 +1,2 @@ -/** Forge Card Game */ +/** Forge Card Game. */ package forge.quest.data.pet;