213 lines
6.8 KiB
ActionScript
213 lines
6.8 KiB
ActionScript
package com.comfig
|
|
{
|
|
public class CommonData
|
|
{
|
|
|
|
public static const STAGE_WIDTH:uint = 1400;
|
|
|
|
public static const STAGE_HEIGHT:uint = 700;
|
|
|
|
public static const STAGE_MAX_WIDTH:uint = 1440;
|
|
|
|
public static const STAGE_MAX_HEIGHT:uint = 900;
|
|
|
|
public static const MAX_WIDTH:uint = 2000;
|
|
|
|
public static const MAX_HEIGHT:uint = 1400;
|
|
|
|
public static const EQUIP_WIDTH:uint = 53;
|
|
|
|
public static const EQUIP_HEIGHT:uint = 53;
|
|
|
|
public static const BUFF_WIDTH:uint = 25;
|
|
|
|
public static const BUFF_HEIGHT:uint = 25;
|
|
|
|
public static const open_junshi:int = 1;
|
|
|
|
public static var countryArr:Array = [1,6,7];
|
|
|
|
public static const build_level_1:int = 3;
|
|
|
|
public static const build_level_2:int = 5;
|
|
|
|
public static const viewBabel3:Boolean = true;
|
|
|
|
private static const serverIpArr:Array = ["47.120.58.27","47.120.74.49","47.113.230.132","47.114.62.108","116.62.120.209","118.31.37.252","47.121.191.22","47.121.192.198"];
|
|
|
|
public static const openRiches:Boolean = true;
|
|
|
|
public static const openHeroboss:Boolean = true;
|
|
|
|
public static const canRebuild:Boolean = true;
|
|
|
|
public static var isOpenLaterAward:Boolean = false;
|
|
|
|
public static var babelNameArr:Array = ["千重楼","云中楼","天外楼","地宫楼","神宫楼","魔宫楼","天宫楼","仙宫楼","镜门楼","楼外楼","倒千重","倒云中","倒天外","倒地宫","倒神宫","倒魔宫","倒天宫","倒仙宫","倒镜门","倒楼外","倒楼上","倒楼中","倒楼下","倒噩梦","倒地狱"];
|
|
|
|
public static var babelMoreNameArr:Array = ["天界楼","仙界楼","神界楼","魔界楼","佛界楼","灵界楼","妖界楼","冥界楼"];
|
|
|
|
public static var babelMoreNameArr1:Array = ["一宫","二宫","三宫","四宫","五宫","六宫","七宫","八宫","九宫","十宫","十一宫","十二宫"];
|
|
|
|
public static var babelMoreNameArr2:Array = ["玄武","玄武","玄武","朱雀","朱雀","朱雀","白虎","白虎","白虎","青龙","青龙","青龙"];
|
|
|
|
public static var babelMoreNameArr3:Array = ["倒玄武","倒玄武","倒玄武","倒朱雀","倒朱雀","倒朱雀","倒白虎","倒白虎","倒白虎","倒青龙","倒青龙","倒青龙"];
|
|
|
|
public static const army:String = "army.xml";
|
|
|
|
public static const baseUI:String = "baseUI.xml";
|
|
|
|
public static const battle:String = "battle.xml";
|
|
|
|
public static const exam:String = "exam.xml";
|
|
|
|
public static const farm:String = "farm.xml";
|
|
|
|
public static const govPotz:String = "govPotz.xml";
|
|
|
|
public static const hero:String = "hero.xml";
|
|
|
|
public static const item:String = "item.xml";
|
|
|
|
public static const map:String = "map.xml";
|
|
|
|
public static const mission:String = "mission.xml";
|
|
|
|
public static const shop:String = "shop.xml";
|
|
|
|
public static const tower:String = "tower.xml";
|
|
|
|
public static const BUILD_100:String = "N100";
|
|
|
|
public static const BUILD_101:String = "N101";
|
|
|
|
public static const BUILD_102:String = "N102";
|
|
|
|
public static const BUILD_103:String = "N103";
|
|
|
|
public static const BUILD_104:String = "N104";
|
|
|
|
public static const BUILD_105:String = "N105";
|
|
|
|
public static const BUILD_106:String = "N106";
|
|
|
|
public static const BUILD_107:String = "N107";
|
|
|
|
public static const BUILD_108:String = "N108";
|
|
|
|
public static const BUILD_109:String = "N109";
|
|
|
|
public static const BUILD_110:String = "N110";
|
|
|
|
public static const BUILD_111:String = "N111";
|
|
|
|
public static const BUILD_112:String = "N112";
|
|
|
|
public static const BUILD_113:String = "N113";
|
|
|
|
public static const BUILD_114:String = "N114";
|
|
|
|
public static const BUILD_116:String = "N116";
|
|
|
|
public static const BUILD_117:String = "N117";
|
|
|
|
public static const BUILD_HOUSE:int = 10110001;
|
|
|
|
public static const BUILD_WAREHOUSE:int = 10110002;
|
|
|
|
public static const BUILD_MARKET:int = 10116001;
|
|
|
|
public static const BUILD_PUB:int = 10114001;
|
|
|
|
public static const BUILD_CAMP:int = 10112001;
|
|
|
|
public static const BUILD_MEDICAL:int = 10115002;
|
|
|
|
public static const BUILD_WORK:int = 10114003;
|
|
|
|
public static const BUILD_BOOK:int = 10113001;
|
|
|
|
public static const BUILD_SMITHY:int = 10116002;
|
|
|
|
public static const BUILD_MISSION:int = 10117001;
|
|
|
|
public static const BUILD_WALL:int = 10112006;
|
|
|
|
public static const BUILD_CITY:int = 10111001;
|
|
|
|
public static const ECONOMIC_1:int = 10130001;
|
|
|
|
public static const ECONOMIC_2:int = 10130002;
|
|
|
|
public static const ECONOMIC_3:int = 10130003;
|
|
|
|
public static const ECONOMIC_4:int = 10130004;
|
|
|
|
public static const ECONOMIC_5:int = 10130005;
|
|
|
|
public static const ECONOMIC_6:int = 10130006;
|
|
|
|
public static const MILITARY_1:int = 10140001;
|
|
|
|
public static const MILITARY_2:int = 10140002;
|
|
|
|
public static const MILITARY_3:int = 10140003;
|
|
|
|
public static const MILITARY_4:int = 10140004;
|
|
|
|
public static const MILITARY_5:int = 10140005;
|
|
|
|
public static const MILITARY_6:int = 10140006;
|
|
|
|
public static const openRadomBox:Boolean = true;
|
|
|
|
public static const openArmyBoss:Boolean = true;
|
|
|
|
public static const openShengongBoss:Boolean = true;
|
|
|
|
public static const openBigBoss:Boolean = true;
|
|
|
|
public static const openJunShiSkill:Boolean = true;
|
|
|
|
public function CommonData()
|
|
{
|
|
super();
|
|
}
|
|
|
|
public static function setCountryArr(param1:Array) : void
|
|
{
|
|
if(param1.length > 0)
|
|
{
|
|
countryArr = param1;
|
|
}
|
|
}
|
|
|
|
public static function checkServerIp(param1:String) : Boolean
|
|
{
|
|
var _loc2_:String = null;
|
|
for each(_loc2_ in serverIpArr)
|
|
{
|
|
if(_loc2_ == param1)
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public static function isCountryOpen(param1:int) : Boolean
|
|
{
|
|
var _loc2_:int = 0;
|
|
for each(_loc2_ in countryArr)
|
|
{
|
|
if(_loc2_ == param1)
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
|