rename files

This commit is contained in:
jendave
2011-11-02 05:49:50 +00:00
parent 9edfd12e4d
commit cc3aad44f8
12 changed files with 29 additions and 29 deletions

View File

@@ -416,7 +416,7 @@ public class ComputerAIGeneral implements Computer {
public final void declareBlockers() {
CardList blockers = AllZoneUtil.getCreaturesInPlay(AllZone.getComputerPlayer());
AllZone.setCombat(ComputerUtilBlock2.getBlockers(AllZone.getCombat(), blockers));
AllZone.setCombat(ComputerUtilBlock.getBlockers(AllZone.getCombat(), blockers));
CombatUtil.showCombat();

View File

@@ -1402,7 +1402,7 @@ public class ComputerUtil {
* @return a {@link forge.Combat} object.
*/
public static Combat getAttackers() {
ComputerUtilAttack2 att = new ComputerUtilAttack2(AllZone.getComputerPlayer().getCardsIn(Zone.Battlefield),
ComputerUtilAttack att = new ComputerUtilAttack(AllZone.getComputerPlayer().getCardsIn(Zone.Battlefield),
AllZone.getHumanPlayer().getCardsIn(Zone.Battlefield), AllZone.getHumanPlayer().getLife());
return att.getAttackers();
@@ -1418,7 +1418,7 @@ public class ComputerUtil {
public static Combat getBlockers() {
CardList blockers = AllZone.getComputerPlayer().getCardsIn(Zone.Battlefield);
return ComputerUtilBlock2.getBlockers(AllZone.getCombat(), blockers);
return ComputerUtilBlock.getBlockers(AllZone.getCombat(), blockers);
}
/**

View File

@@ -17,7 +17,7 @@ import forge.card.trigger.Trigger;
* @author Forge
* @version $Id$
*/
public class ComputerUtilAttack2 {
public class ComputerUtilAttack {
// possible attackers and blockers
private CardList attackers;
@@ -46,7 +46,7 @@ public class ComputerUtilAttack2 {
* @param blockerLife
* a int.
*/
public ComputerUtilAttack2(final Card[] possibleAttackers, final Card[] possibleBlockers, final int blockerLife) {
public ComputerUtilAttack(final Card[] possibleAttackers, final Card[] possibleBlockers, final int blockerLife) {
this(new CardList(possibleAttackers), new CardList(possibleBlockers), blockerLife);
}
@@ -62,7 +62,7 @@ public class ComputerUtilAttack2 {
* @param blockerLife
* a int.
*/
public ComputerUtilAttack2(final CardList possibleAttackers,
public ComputerUtilAttack(final CardList possibleAttackers,
final CardList possibleBlockers, final int blockerLife) {
humanList = new CardList(possibleBlockers.toArray());
humanList = humanList.getType("Creature");

View File

@@ -12,7 +12,7 @@ import forge.card.cardFactory.CardFactoryUtil;
* @author Forge
* @version $Id$
*/
public class ComputerUtilBlock2 {
public class ComputerUtilBlock {
/** Constant <code>attackers</code>. */
private static CardList attackers = new CardList(); // all attackers
/** Constant <code>attackersLeft</code>. */
@@ -147,7 +147,7 @@ public class ComputerUtilBlock2 {
* a int.
*/
private static void setDiff(final int diff) {
ComputerUtilBlock2.diff = (diff);
ComputerUtilBlock.diff = (diff);
}
// finds the creatures able to block the attacker

View File

@@ -102,7 +102,7 @@ import forge.properties.NewConstants;
* @author Forge
* @version $Id$
*/
public class GuiDisplay4 extends JFrame implements CardContainer, Display, NewConstants, NewConstants.Gui.GuiDisplay,
public class GuiDisplay extends JFrame implements CardContainer, Display, NewConstants, NewConstants.Gui.GuiDisplay,
NewConstants.Lang.GuiDisplay {
/** Constant <code>serialVersionUID=4519302185194841060L</code>. */
private static final long serialVersionUID = 4519302185194841060L;
@@ -137,7 +137,7 @@ public class GuiDisplay4 extends JFrame implements CardContainer, Display, NewCo
* Constructor for GuiDisplay4.
* </p>
*/
public GuiDisplay4() {
public GuiDisplay() {
AllZone.setDisplay(this);
setupActions();
initComponents();
@@ -168,7 +168,7 @@ public class GuiDisplay4 extends JFrame implements CardContainer, Display, NewCo
if (damage <= 0) {
return;
}
new GuiMultipleBlockers4(attacker, blockers, damage, this);
new GuiMultipleBlockers(attacker, blockers, damage, this);
}
/**
@@ -334,7 +334,7 @@ public class GuiDisplay4 extends JFrame implements CardContainer, Display, NewCo
};
// end DevMode SetLife
Object[] objDev = { GuiDisplay4.canLoseByDecking, viewAIHand, viewAILibrary, viewHumanLibrary,
Object[] objDev = { GuiDisplay.canLoseByDecking, viewAIHand, viewAILibrary, viewHumanLibrary,
generateMana, setupBattleField, tutor, addCounter, tapPerm, untapPerm, unlimitedLand, setLife };
for (Object o : objDev) {
if (o instanceof ForgeAction) {

View File

@@ -26,7 +26,7 @@ import forge.gui.game.CardPanel;
* very hacky.
*
*/
class GuiMultipleBlockers4 extends JFrame {
class GuiMultipleBlockers extends JFrame {
/** Constant <code>serialVersionUID=7622818310877381045L</code>. */
private static final long serialVersionUID = 7622818310877381045L;
@@ -57,7 +57,7 @@ class GuiMultipleBlockers4 extends JFrame {
* @param display
* a {@link forge.CardContainer} object.
*/
GuiMultipleBlockers4(final Card attacker, final CardList creatureList,
GuiMultipleBlockers(final Card attacker, final CardList creatureList,
final int damage, final CardContainer display) {
this();
assignDamage = damage;
@@ -90,7 +90,7 @@ class GuiMultipleBlockers4 extends JFrame {
* Constructor for Gui_MultipleBlockers4.
* </p>
*/
public GuiMultipleBlockers4() {
public GuiMultipleBlockers() {
try {
jbInit();
} catch (Exception ex) {

View File

@@ -29,7 +29,7 @@ import javax.swing.border.TitledBorder;
import forge.AllZone;
import forge.Command;
import forge.Constant;
import forge.GuiDisplay4;
import forge.GuiDisplay;
import forge.ImageCache;
import forge.deck.Deck;
import forge.gui.GuiUtils;
@@ -758,7 +758,7 @@ public class QuestMainPanel extends QuestAbstractPanel {
// DO NOT CHANGE THIS ORDER, GuiDisplay needs to be created before cards
// are added
// if (newGUICheckbox.isSelected()) {
AllZone.setDisplay(new GuiDisplay4());
AllZone.setDisplay(new GuiDisplay());
// } else {
// AllZone.setDisplay(new GuiDisplay3());
// }

View File

@@ -41,7 +41,7 @@ import forge.AllZone;
import forge.Command;
import forge.Constant;
import forge.GuiImportPicture;
import forge.GuiDisplay4;
import forge.GuiDisplay;
import forge.GuiDownloadPrices;
import forge.GuiDownloadSetPicturesLQ;
import forge.MyRandom;
@@ -1182,7 +1182,7 @@ public class Gui_HomeScreen {
return;
}
AllZone.setDisplay(new GuiDisplay4());
AllZone.setDisplay(new GuiDisplay());
AllZone.getGameAction().newGame(Constant.Runtime.HUMAN_DECK[0], Constant.Runtime.COMPUTER_DECK[0]);
AllZone.getDisplay().setVisible(true);
}

View File

@@ -50,7 +50,7 @@ import forge.Constant;
import forge.ConstantStringArrayList;
import forge.FileUtil;
import forge.GuiImportPicture;
import forge.GuiDisplay4;
import forge.GuiDisplay;
import forge.GuiDownloadQuestImages;
import forge.GuiDownloadPicturesLQ;
import forge.GuiDownloadPrices;
@@ -849,7 +849,7 @@ public class OldGuiNewGame extends JFrame implements NewConstants, NewConstants.
// Constant.Runtime.DevMode[0] = devModeCheckBox.isSelected();
// if (newGuiCheckBox.isSelected())
AllZone.setDisplay(new GuiDisplay4());
AllZone.setDisplay(new GuiDisplay());
// else AllZone.setDisplay(new GuiDisplay3());
Constant.Runtime.SMOOTH[0] = OldGuiNewGame.getSmoothLandCheckBox().isSelected();