package ppSetting;

import server.ServerProperties;

public class Game {
    public static String 服务端名称;
    public static String 初始ip;
    public static short 服务端端口;
    public static short 商城端口;
    public static int 频道端口;
    public static int 频道个数;
    public static String 服务端名字;
    public static String 进入游戏小窗口气泡;
    public static String 黄色滚动广告;
    public static String 数据库名字;
    public static String 数据库IP;
    public static String 数据库端口;
    public static String 数据库用户名;
    public static String 数据库密码;
    public static int 经验倍率;
    public static int 金币爆率;
    public static int 物品爆率;


    public static Boolean 双倍频道开关;
    public static int 双倍频道;
    public static int 服务端启动中;

    static {
        服务端名称 = "贪玩冒险岛服务端";
        初始ip = ServerProperties.getProperty("pp.IPAddress");
        服务端端口 = Short.parseShort(ServerProperties.getProperty("pp.LoginPort"));
        商城端口 = Short.parseShort(ServerProperties.getProperty("pp.CashPort"));
        频道端口 = Integer.parseInt(ServerProperties.getProperty("pp.ChannelPort"));
        频道个数 = Integer.parseInt(ServerProperties.getProperty("pp.Channel.count"));
        服务端名字 = ServerProperties.getProperty("pp.serverName", "");
        进入游戏小窗口气泡 = ServerProperties.getProperty("pp.eventMessage", "");
        黄色滚动广告 = ServerProperties.getProperty("pp.serverMessage", "");
        数据库名字 = ServerProperties.getProperty("pp.DBName");
        数据库IP = ServerProperties.getProperty("pp.SQLAddress");
        数据库端口 = ServerProperties.getProperty("pp.SQLPort");
        数据库用户名 = ServerProperties.getProperty("pp.SQLUser");
        数据库密码 = ServerProperties.getProperty("pp.SQLPassword");
        经验倍率 = Integer.parseInt(ServerProperties.getProperty("pp.expRate"));
        金币爆率 = Integer.parseInt(ServerProperties.getProperty("pp.mesoRate"));
        物品爆率 = Integer.parseInt(ServerProperties.getProperty("pp.dropRate"));
        双倍频道开关 = Boolean.valueOf(Boolean.parseBoolean(ServerProperties.getProperty("pp.DD")));
        双倍频道 = Integer.parseInt(ServerProperties.getProperty("pp.DDChannel"));
        服务端启动中 = 0;
    }
}
