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

8
.gitattributes vendored
View File

@@ -10273,8 +10273,8 @@ src/main/java/forge/Computer.java svneol=native#text/plain
src/main/java/forge/ComputerAIGeneral.java svneol=native#text/plain src/main/java/forge/ComputerAIGeneral.java svneol=native#text/plain
src/main/java/forge/ComputerAIInput.java svneol=native#text/plain src/main/java/forge/ComputerAIInput.java svneol=native#text/plain
src/main/java/forge/ComputerUtil.java svneol=native#text/plain src/main/java/forge/ComputerUtil.java svneol=native#text/plain
src/main/java/forge/ComputerUtilAttack2.java svneol=native#text/plain src/main/java/forge/ComputerUtilAttack.java svneol=native#text/plain
src/main/java/forge/ComputerUtilBlock2.java svneol=native#text/plain src/main/java/forge/ComputerUtilBlock.java svneol=native#text/plain
src/main/java/forge/Constant.java svneol=native#text/plain src/main/java/forge/Constant.java svneol=native#text/plain
src/main/java/forge/ConstantStringArrayList.java svneol=native#text/plain src/main/java/forge/ConstantStringArrayList.java svneol=native#text/plain
src/main/java/forge/ConstantStringHashMap.java svneol=native#text/plain src/main/java/forge/ConstantStringHashMap.java svneol=native#text/plain
@@ -10290,7 +10290,7 @@ src/main/java/forge/FileUtil.java svneol=native#text/plain
src/main/java/forge/GameAction.java svneol=native#text/plain src/main/java/forge/GameAction.java svneol=native#text/plain
src/main/java/forge/GameActionUtil.java svneol=native#text/plain src/main/java/forge/GameActionUtil.java svneol=native#text/plain
src/main/java/forge/GameEntity.java -text src/main/java/forge/GameEntity.java -text
src/main/java/forge/GuiDisplay4.java svneol=native#text/plain src/main/java/forge/GuiDisplay.java svneol=native#text/plain
src/main/java/forge/GuiDisplayUtil.java svneol=native#text/plain src/main/java/forge/GuiDisplayUtil.java svneol=native#text/plain
src/main/java/forge/GuiDownloadPicturesLQ.java svneol=native#text/plain src/main/java/forge/GuiDownloadPicturesLQ.java svneol=native#text/plain
src/main/java/forge/GuiDownloadPrices.java svneol=native#text/plain src/main/java/forge/GuiDownloadPrices.java svneol=native#text/plain
@@ -10300,7 +10300,7 @@ src/main/java/forge/GuiDownloader.java -text
src/main/java/forge/GuiImportPicture.java svneol=native#text/plain src/main/java/forge/GuiImportPicture.java svneol=native#text/plain
src/main/java/forge/GuiInput.java svneol=native#text/plain src/main/java/forge/GuiInput.java svneol=native#text/plain
src/main/java/forge/GuiMigrateLocalMWSSetPicturesHQ.java svneol=native#text/plain src/main/java/forge/GuiMigrateLocalMWSSetPicturesHQ.java svneol=native#text/plain
src/main/java/forge/GuiMultipleBlockers4.java svneol=native#text/plain src/main/java/forge/GuiMultipleBlockers.java svneol=native#text/plain
src/main/java/forge/GuiNewGame.java svneol=native#text/plain src/main/java/forge/GuiNewGame.java svneol=native#text/plain
src/main/java/forge/GuiProgressBarWindow.java svneol=native#text/plain src/main/java/forge/GuiProgressBarWindow.java svneol=native#text/plain
src/main/java/forge/HandSizeOp.java svneol=native#text/plain src/main/java/forge/HandSizeOp.java svneol=native#text/plain

View File

@@ -231,7 +231,7 @@
</descriptorRefs> </descriptorRefs>
<archive> <archive>
<manifest> <manifest>
<mainClass>forge.Gui_NewGame</mainClass> <mainClass>forge.GuiNewGame</mainClass>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries> <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest> </manifest>
<manifestEntries> <manifestEntries>
@@ -704,7 +704,7 @@
<errTitle>forge</errTitle> <errTitle>forge</errTitle>
<icon>${configSourceDirectory}/forge.ico</icon> <icon>${configSourceDirectory}/forge.ico</icon>
<classPath> <classPath>
<mainClass>forge.Gui_NewGame</mainClass> <mainClass>forge.GuiNewGame</mainClass>
<addDependencies>false</addDependencies> <addDependencies>false</addDependencies>
<preCp>anything</preCp> <preCp>anything</preCp>
</classPath> </classPath>
@@ -870,7 +870,7 @@
<mkdir dir="${project.build.directory}/res/cardsfolder" /> <mkdir dir="${project.build.directory}/res/cardsfolder" />
<zip destfile="${project.build.directory}/res/cardsfolder/cardsfolder.zip" basedir="${basedir}/res/cardsfolder" level="1" /> <zip destfile="${project.build.directory}/res/cardsfolder/cardsfolder.zip" basedir="${basedir}/res/cardsfolder" level="1" />
<taskdef name="jarbundler" classpathref="maven.runtime.classpath" classname="net.sourceforge.jarbundler.JarBundler" /> <taskdef name="jarbundler" classpathref="maven.runtime.classpath" classname="net.sourceforge.jarbundler.JarBundler" />
<jarbundler dir="${project.build.directory}/${project.build.finalName}-osx" name="${project.name}" version="${project.version}" mainclass="forge.Gui_NewGame" icon="${basedir}/${configSourceDirectory}/Forge.icns" jvmversion="1.6+" vmoptions="-Xmx1024m" shortname="${project.name}" workingdirectory="$APP_PACKAGE/Contents/Resources/Java" jar="${project.build.directory}/${project.build.finalName}-jar-with-dependencies.jar"> <jarbundler dir="${project.build.directory}/${project.build.finalName}-osx" name="${project.name}" version="${project.version}" mainclass="forge.GuiNewGame" icon="${basedir}/${configSourceDirectory}/Forge.icns" jvmversion="1.6+" vmoptions="-Xmx1024m" shortname="${project.name}" workingdirectory="$APP_PACKAGE/Contents/Resources/Java" jar="${project.build.directory}/${project.build.finalName}-jar-with-dependencies.jar">
<javafileset dir="${basedir}"> <javafileset dir="${basedir}">
<include name="*.properties" /> <include name="*.properties" />
<include name="res/**" /> <include name="res/**" />

View File

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

View File

@@ -1402,7 +1402,7 @@ public class ComputerUtil {
* @return a {@link forge.Combat} object. * @return a {@link forge.Combat} object.
*/ */
public static Combat getAttackers() { 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()); AllZone.getHumanPlayer().getCardsIn(Zone.Battlefield), AllZone.getHumanPlayer().getLife());
return att.getAttackers(); return att.getAttackers();
@@ -1418,7 +1418,7 @@ public class ComputerUtil {
public static Combat getBlockers() { public static Combat getBlockers() {
CardList blockers = AllZone.getComputerPlayer().getCardsIn(Zone.Battlefield); 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 * @author Forge
* @version $Id$ * @version $Id$
*/ */
public class ComputerUtilAttack2 { public class ComputerUtilAttack {
// possible attackers and blockers // possible attackers and blockers
private CardList attackers; private CardList attackers;
@@ -46,7 +46,7 @@ public class ComputerUtilAttack2 {
* @param blockerLife * @param blockerLife
* a int. * 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); this(new CardList(possibleAttackers), new CardList(possibleBlockers), blockerLife);
} }
@@ -62,7 +62,7 @@ public class ComputerUtilAttack2 {
* @param blockerLife * @param blockerLife
* a int. * a int.
*/ */
public ComputerUtilAttack2(final CardList possibleAttackers, public ComputerUtilAttack(final CardList possibleAttackers,
final CardList possibleBlockers, final int blockerLife) { final CardList possibleBlockers, final int blockerLife) {
humanList = new CardList(possibleBlockers.toArray()); humanList = new CardList(possibleBlockers.toArray());
humanList = humanList.getType("Creature"); humanList = humanList.getType("Creature");

View File

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

View File

@@ -102,7 +102,7 @@ import forge.properties.NewConstants;
* @author Forge * @author Forge
* @version $Id$ * @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 { NewConstants.Lang.GuiDisplay {
/** Constant <code>serialVersionUID=4519302185194841060L</code>. */ /** Constant <code>serialVersionUID=4519302185194841060L</code>. */
private static final long serialVersionUID = 4519302185194841060L; private static final long serialVersionUID = 4519302185194841060L;
@@ -137,7 +137,7 @@ public class GuiDisplay4 extends JFrame implements CardContainer, Display, NewCo
* Constructor for GuiDisplay4. * Constructor for GuiDisplay4.
* </p> * </p>
*/ */
public GuiDisplay4() { public GuiDisplay() {
AllZone.setDisplay(this); AllZone.setDisplay(this);
setupActions(); setupActions();
initComponents(); initComponents();
@@ -168,7 +168,7 @@ public class GuiDisplay4 extends JFrame implements CardContainer, Display, NewCo
if (damage <= 0) { if (damage <= 0) {
return; 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 // 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 }; generateMana, setupBattleField, tutor, addCounter, tapPerm, untapPerm, unlimitedLand, setLife };
for (Object o : objDev) { for (Object o : objDev) {
if (o instanceof ForgeAction) { if (o instanceof ForgeAction) {

View File

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

View File

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

View File

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

View File

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

View File

@@ -22,7 +22,7 @@ public class GuiMultipleBlockers4Test {
list.add(AllZone.getCardFactory().getCard("Frostling", null)); list.add(AllZone.getCardFactory().getCard("Frostling", null));
for (int i = 0; i < 2; i++) { for (int i = 0; i < 2; i++) {
new GuiMultipleBlockers4(null, list, i + 1, null); new GuiMultipleBlockers(null, list, i + 1, null);
} }
} }
} }