Update Maven plugins, checkstyle, Add namespace javadocs

This commit is contained in:
jendave
2012-02-06 18:32:37 +00:00
parent a03140f693
commit f81a3c590f
6 changed files with 33 additions and 7 deletions

View File

@@ -50,7 +50,7 @@ public final class Constant {
public static final Deck[] COMPUTER_DECK = new Deck[1];
/** The skin name. */
public static String SKIN_NAME = "default";
private static String skinName = "default";
/** The game type. */
private static GameType gameType = GameType.Constructed;
@@ -104,6 +104,24 @@ public final class Constant {
public static void setGameType(final GameType gameType0) {
Runtime.gameType = gameType0;
}
/**
* Gets the skin name.
*
* @return the skin name
*/
public static String getSkinName() {
return Runtime.skinName;
}
/**
* Sets the skin name.
*
* @param skinName the new skin name
*/
public static void setSkinName(final String skinName) {
Runtime.skinName = skinName;
}
}
/**

View File

@@ -0,0 +1,3 @@
/** Controller (as in model-view-controller) for Forge. */
package forge.control.bazaar;

View File

@@ -105,10 +105,10 @@ public class FModel {
// It's looking like all the settings at the same time, here only.
// Doublestrike 06-02-12
Constant.Runtime.DEV_MODE[0] = preferences.getPrefBoolean(FPref.DEV_MODE_ENABLED);
Constant.Runtime.SKIN_NAME = preferences.getPref(FPref.UI_SKIN);
Constant.Runtime.setSkinName(preferences.getPref(FPref.UI_SKIN));
// Load splash image and preloader swatches for skin
FSkin.loadLight(Constant.Runtime.SKIN_NAME);
FSkin.loadLight(Constant.Runtime.getSkinName());
// Instantiate AI
AllZone.setInputControl(new InputControl(FModel.this));

View File

@@ -0,0 +1,3 @@
/** Views (as in model-view-controller) for Forge. */
package forge.view.bazaar;