/// <summary> /// コンストラクタ /// </summary> /// <param name="seed">0~FFFF</param> /// <param name="setting">1~6</param> public TheOceanMachine(int seed, int setting) { this.seed = seed; this.setting = setting; mainLogic = new MainLogic(seed); kakuhenMachine = new KakuhenMachine(); routeDeterminer = new RouteDeterminer(seed, setting); reelMachine = new ReelMachine(); roundMachine = new RoundMachine(); }
/// <summary> /// ルート取得 /// </summary> /// <param name="power"></param> /// <returns></returns> public Route GetRoute(RoundMachine roundMachine, int power) { var route = settingTable.Where(st => st.setting == setting) .First() .table[RndFF]; if(roundMachine.State == RoundState.EnsyutuSyuryo) { route = Route.Atacker; } else if(roundMachine.State == RoundState.Kaitentai) { if(route==Route.Chacker||route==Route.Chacker7) { route = Route.Kaitenti; } } else if (roundMachine.State == RoundState.Turip) { if(power > 150) { route = Route.Syokyu15; } } return route; }