forked from External/mage
detect client version + client changes for AI skill level
This commit is contained in:
parent
0968d4c00a
commit
86f708b17a
46 changed files with 362 additions and 540 deletions
|
|
@ -49,15 +49,7 @@ public class Config {
|
|||
public static final String remoteServer;
|
||||
public static final String serverName;
|
||||
public static final int port;
|
||||
public static final String cardsResourcePath;
|
||||
public static final String frameResourcePath;
|
||||
public static final String powerboxResourcePath;
|
||||
public static final String cardArtResourcePath;
|
||||
public static final String symbolsResourcePath;
|
||||
public static final String setIconsResourcePath;
|
||||
public static final String resourcePath;
|
||||
public static final double cardScalingFactor;
|
||||
public static final boolean useResource;
|
||||
public static final CardDimensions dimensions;
|
||||
|
||||
public static final String defaultGameType;
|
||||
|
|
@ -75,8 +67,6 @@ public class Config {
|
|||
serverName = p.getProperty("server-name");
|
||||
port = Integer.parseInt(p.getProperty("port"));
|
||||
remoteServer = p.getProperty("remote-server");
|
||||
cardsResourcePath = p.getProperty("cards-resource-path");
|
||||
resourcePath = p.getProperty("resource-path");
|
||||
cardScalingFactor = Double.valueOf(p.getProperty("card-scaling-factor"));
|
||||
defaultGameType = p.getProperty("default-game-type", "Human");
|
||||
defaultDeckPath = p.getProperty("default-deck-path");
|
||||
|
|
@ -84,23 +74,6 @@ public class Config {
|
|||
defaultComputerName = p.getProperty("default-computer-name");
|
||||
|
||||
dimensions = new CardDimensions(cardScalingFactor);
|
||||
File test = new File(cardsResourcePath);
|
||||
if (test.isDirectory()) {
|
||||
useResource = false;
|
||||
frameResourcePath = cardsResourcePath + "Frame" + File.separator;
|
||||
powerboxResourcePath = cardsResourcePath + "PowerBox" + File.separator;
|
||||
cardArtResourcePath = cardsResourcePath + "Pics" + File.separator;
|
||||
setIconsResourcePath = cardsResourcePath + "Icon" + File.separator;
|
||||
symbolsResourcePath = p.getProperty("symbols-resource-path");
|
||||
}
|
||||
else {
|
||||
useResource = true;
|
||||
frameResourcePath = resourcePath + "cards/frame/";
|
||||
powerboxResourcePath = resourcePath + "cards/powerbox/";
|
||||
cardArtResourcePath = resourcePath + "cards/art/";
|
||||
setIconsResourcePath = resourcePath + "cards/icon/";
|
||||
symbolsResourcePath = resourcePath + "symbols/";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue