public double GetFormationParamF2(GetFormationKinds kind, BattleFormationKinds1 attacker, BattleFormationKinds1 defencer) { switch (kind) { case GetFormationKinds.HOUGEKI: if (attacker == BattleFormationKinds1.FukuJuu && defencer == BattleFormationKinds1.TanOu) { return(1.2); } if (attacker == BattleFormationKinds1.Teikei && defencer == BattleFormationKinds1.TanJuu) { return(1.2); } if (attacker == BattleFormationKinds1.TanOu && defencer == BattleFormationKinds1.Teikei) { return(1.2); } break; case GetFormationKinds.SUBMARINE: if (attacker == BattleFormationKinds1.FukuJuu && defencer == BattleFormationKinds1.TanOu) { return(1.2); } if (attacker == BattleFormationKinds1.Teikei && defencer == BattleFormationKinds1.TanJuu) { return(1.2); } if (attacker == BattleFormationKinds1.TanOu && defencer == BattleFormationKinds1.Teikei) { return(1.2); } break; } return(paramF2[kind][attacker]); }
private void setParamater() { Dictionary <GetFormationKinds, Dictionary <BattleFormationKinds1, double> > dictionary = new Dictionary <GetFormationKinds, Dictionary <BattleFormationKinds1, double> >(); Dictionary <GetFormationKinds, Dictionary <BattleFormationKinds1, double> > dictionary2 = new Dictionary <GetFormationKinds, Dictionary <BattleFormationKinds1, double> >(); Dictionary <GetFormationKinds, Dictionary <BattleFormationKinds1, double> > dictionary3 = new Dictionary <GetFormationKinds, Dictionary <BattleFormationKinds1, double> >(); Dictionary <GetFormationKinds, Dictionary <BattleFormationKinds2, double> > dictionary4 = new Dictionary <GetFormationKinds, Dictionary <BattleFormationKinds2, double> >(); foreach (object value in Enum.GetValues(typeof(GetFormationKinds))) { GetFormationKinds key = (GetFormationKinds)(int)value; dictionary.Add(key, new Dictionary <BattleFormationKinds1, double>()); dictionary2.Add(key, new Dictionary <BattleFormationKinds1, double>()); dictionary3.Add(key, new Dictionary <BattleFormationKinds1, double>()); dictionary4.Add(key, new Dictionary <BattleFormationKinds2, double>()); foreach (object value2 in Enum.GetValues(typeof(BattleFormationKinds1))) { BattleFormationKinds1 key2 = (BattleFormationKinds1)(int)value2; dictionary[key].Add(key2, 1.0); dictionary2[key].Add(key2, 1.0); dictionary3[key].Add(key2, 1.0); } foreach (object value3 in Enum.GetValues(typeof(BattleFormationKinds2))) { BattleFormationKinds2 key3 = (BattleFormationKinds2)(int)value3; dictionary4[key].Add(key3, 1.0); } } dictionary[GetFormationKinds.HOUGEKI][BattleFormationKinds1.TanJuu] = 1.0; dictionary[GetFormationKinds.HOUGEKI][BattleFormationKinds1.FukuJuu] = 0.8; dictionary[GetFormationKinds.HOUGEKI][BattleFormationKinds1.Rinkei] = 0.7; dictionary[GetFormationKinds.HOUGEKI][BattleFormationKinds1.Teikei] = 0.6; dictionary[GetFormationKinds.HOUGEKI][BattleFormationKinds1.TanOu] = 0.6; dictionary[GetFormationKinds.RAIGEKI][BattleFormationKinds1.TanJuu] = 1.0; dictionary[GetFormationKinds.RAIGEKI][BattleFormationKinds1.FukuJuu] = 0.8; dictionary[GetFormationKinds.RAIGEKI][BattleFormationKinds1.Rinkei] = 0.7; dictionary[GetFormationKinds.RAIGEKI][BattleFormationKinds1.Teikei] = 0.6; dictionary[GetFormationKinds.RAIGEKI][BattleFormationKinds1.TanOu] = 0.6; dictionary[GetFormationKinds.MIDNIGHT][BattleFormationKinds1.TanJuu] = 1.0; dictionary[GetFormationKinds.MIDNIGHT][BattleFormationKinds1.FukuJuu] = 1.0; dictionary[GetFormationKinds.MIDNIGHT][BattleFormationKinds1.Rinkei] = 1.0; dictionary[GetFormationKinds.MIDNIGHT][BattleFormationKinds1.Teikei] = 1.0; dictionary[GetFormationKinds.MIDNIGHT][BattleFormationKinds1.TanOu] = 1.0; dictionary[GetFormationKinds.AIR][BattleFormationKinds1.TanJuu] = 1.0; dictionary[GetFormationKinds.AIR][BattleFormationKinds1.FukuJuu] = 1.0; dictionary[GetFormationKinds.AIR][BattleFormationKinds1.Rinkei] = 1.0; dictionary[GetFormationKinds.AIR][BattleFormationKinds1.Teikei] = 1.0; dictionary[GetFormationKinds.AIR][BattleFormationKinds1.TanOu] = 1.0; dictionary[GetFormationKinds.SUBMARINE][BattleFormationKinds1.TanJuu] = 0.6; dictionary[GetFormationKinds.SUBMARINE][BattleFormationKinds1.FukuJuu] = 0.8; dictionary[GetFormationKinds.SUBMARINE][BattleFormationKinds1.Rinkei] = 1.2; dictionary[GetFormationKinds.SUBMARINE][BattleFormationKinds1.Teikei] = 1.0; dictionary[GetFormationKinds.SUBMARINE][BattleFormationKinds1.TanOu] = 1.3; dictionary2[GetFormationKinds.HOUGEKI][BattleFormationKinds1.TanJuu] = 1.0; dictionary2[GetFormationKinds.HOUGEKI][BattleFormationKinds1.FukuJuu] = 1.2; dictionary2[GetFormationKinds.HOUGEKI][BattleFormationKinds1.Rinkei] = 1.0; dictionary2[GetFormationKinds.HOUGEKI][BattleFormationKinds1.Teikei] = 1.2; dictionary2[GetFormationKinds.HOUGEKI][BattleFormationKinds1.TanOu] = 1.2; dictionary2[GetFormationKinds.RAIGEKI][BattleFormationKinds1.TanJuu] = 1.0; dictionary2[GetFormationKinds.RAIGEKI][BattleFormationKinds1.FukuJuu] = 0.8; dictionary2[GetFormationKinds.RAIGEKI][BattleFormationKinds1.Rinkei] = 0.4; dictionary2[GetFormationKinds.RAIGEKI][BattleFormationKinds1.Teikei] = 0.6; dictionary2[GetFormationKinds.RAIGEKI][BattleFormationKinds1.TanOu] = 0.3; dictionary2[GetFormationKinds.MIDNIGHT][BattleFormationKinds1.TanJuu] = 1.0; dictionary2[GetFormationKinds.MIDNIGHT][BattleFormationKinds1.FukuJuu] = 0.9; dictionary2[GetFormationKinds.MIDNIGHT][BattleFormationKinds1.Rinkei] = 0.7; dictionary2[GetFormationKinds.MIDNIGHT][BattleFormationKinds1.Teikei] = 0.8; dictionary2[GetFormationKinds.MIDNIGHT][BattleFormationKinds1.TanOu] = 0.8; dictionary2[GetFormationKinds.AIR][BattleFormationKinds1.TanJuu] = 1.0; dictionary2[GetFormationKinds.AIR][BattleFormationKinds1.FukuJuu] = 0.9; dictionary2[GetFormationKinds.AIR][BattleFormationKinds1.Rinkei] = 0.7; dictionary2[GetFormationKinds.AIR][BattleFormationKinds1.Teikei] = 0.8; dictionary2[GetFormationKinds.AIR][BattleFormationKinds1.TanOu] = 0.8; dictionary2[GetFormationKinds.SUBMARINE][BattleFormationKinds1.TanJuu] = 1.0; dictionary2[GetFormationKinds.SUBMARINE][BattleFormationKinds1.FukuJuu] = 1.2; dictionary2[GetFormationKinds.SUBMARINE][BattleFormationKinds1.Rinkei] = 1.0; dictionary2[GetFormationKinds.SUBMARINE][BattleFormationKinds1.Teikei] = 1.2; dictionary2[GetFormationKinds.SUBMARINE][BattleFormationKinds1.TanOu] = 1.2; dictionary3[GetFormationKinds.HOUGEKI][BattleFormationKinds1.TanJuu] = 1.0; dictionary3[GetFormationKinds.HOUGEKI][BattleFormationKinds1.FukuJuu] = 1.0; dictionary3[GetFormationKinds.HOUGEKI][BattleFormationKinds1.Rinkei] = 1.1; dictionary3[GetFormationKinds.HOUGEKI][BattleFormationKinds1.Teikei] = 1.2; dictionary3[GetFormationKinds.HOUGEKI][BattleFormationKinds1.TanOu] = 1.3; dictionary3[GetFormationKinds.RAIGEKI][BattleFormationKinds1.TanJuu] = 1.0; dictionary3[GetFormationKinds.RAIGEKI][BattleFormationKinds1.FukuJuu] = 1.0; dictionary3[GetFormationKinds.RAIGEKI][BattleFormationKinds1.Rinkei] = 1.1; dictionary3[GetFormationKinds.RAIGEKI][BattleFormationKinds1.Teikei] = 1.3; dictionary3[GetFormationKinds.RAIGEKI][BattleFormationKinds1.TanOu] = 1.4; dictionary3[GetFormationKinds.MIDNIGHT][BattleFormationKinds1.TanJuu] = 1.0; dictionary3[GetFormationKinds.MIDNIGHT][BattleFormationKinds1.FukuJuu] = 1.0; dictionary3[GetFormationKinds.MIDNIGHT][BattleFormationKinds1.Rinkei] = 1.0; dictionary3[GetFormationKinds.MIDNIGHT][BattleFormationKinds1.Teikei] = 1.1; dictionary3[GetFormationKinds.MIDNIGHT][BattleFormationKinds1.TanOu] = 1.2; dictionary3[GetFormationKinds.AIR][BattleFormationKinds1.TanJuu] = 1.0; dictionary3[GetFormationKinds.AIR][BattleFormationKinds1.FukuJuu] = 1.2; dictionary3[GetFormationKinds.AIR][BattleFormationKinds1.Rinkei] = 1.6; dictionary3[GetFormationKinds.AIR][BattleFormationKinds1.Teikei] = 1.0; dictionary3[GetFormationKinds.AIR][BattleFormationKinds1.TanOu] = 1.0; dictionary3[GetFormationKinds.SUBMARINE][BattleFormationKinds1.TanJuu] = 1.0; dictionary3[GetFormationKinds.SUBMARINE][BattleFormationKinds1.FukuJuu] = 1.0; dictionary3[GetFormationKinds.SUBMARINE][BattleFormationKinds1.Rinkei] = 1.0; dictionary3[GetFormationKinds.SUBMARINE][BattleFormationKinds1.Teikei] = 1.3; dictionary3[GetFormationKinds.SUBMARINE][BattleFormationKinds1.TanOu] = 1.1; dictionary4[GetFormationKinds.HOUGEKI][BattleFormationKinds2.T_Enemy] = 0.6; dictionary4[GetFormationKinds.HOUGEKI][BattleFormationKinds2.T_Own] = 1.2; dictionary4[GetFormationKinds.HOUGEKI][BattleFormationKinds2.Hankou] = 0.8; dictionary4[GetFormationKinds.HOUGEKI][BattleFormationKinds2.Doukou] = 1.0; dictionary4[GetFormationKinds.RAIGEKI][BattleFormationKinds2.T_Enemy] = 0.6; dictionary4[GetFormationKinds.RAIGEKI][BattleFormationKinds2.T_Own] = 1.2; dictionary4[GetFormationKinds.RAIGEKI][BattleFormationKinds2.Hankou] = 0.8; dictionary4[GetFormationKinds.RAIGEKI][BattleFormationKinds2.Doukou] = 1.0; dictionary4[GetFormationKinds.SUBMARINE][BattleFormationKinds2.T_Enemy] = 0.6; dictionary4[GetFormationKinds.SUBMARINE][BattleFormationKinds2.T_Own] = 1.2; dictionary4[GetFormationKinds.SUBMARINE][BattleFormationKinds2.Hankou] = 0.8; dictionary4[GetFormationKinds.SUBMARINE][BattleFormationKinds2.Doukou] = 1.0; paramF1 = dictionary; paramF2 = dictionary2; paramF3 = dictionary3; paramBattleFormattion = dictionary4; }
public double GetFormationParamBattle(GetFormationKinds kind, BattleFormationKinds2 formation) { return(paramBattleFormattion[kind][formation]); }
public double GetFormationParamF3(GetFormationKinds kind, BattleFormationKinds1 attacker) { return(paramF3[kind][attacker]); }