Esempio n. 1
0
        public RebellionBattleManager_Read(bool is_boss, bool last_cell, MapModel map)
            : base(string.Empty)
        {
            _enemy_deck_id = -1;
            _is_boss       = is_boss;
            _last_cell     = last_cell;
            _map           = map;
            DebugBattleMaker.LoadBattleData(out _tmp_day, out _tmp_night, out _tmp_result);
            BattleHeader header;

            if (_tmp_day == null)
            {
                _war_type   = enumMapWarType.Midnight;
                _phase      = CombatPhase.NIGHT;
                _battleData = _tmp_night;
                header      = _battleData.NightBattle.Header;
            }
            else
            {
                _war_type   = enumMapWarType.Normal;
                _phase      = CombatPhase.DAY;
                _battleData = _tmp_day;
                header      = _battleData.DayBattle.Header;
                if (_battleData.DayBattle.AirBattle2 != null)
                {
                    _war_type = enumMapWarType.AirBattle;
                }
            }
            _ships_f = _CreateShipData_f(header, practice: false);
            _ships_e = _CreateShipData_e(header, practice: false);
        }
Esempio n. 2
0
        public SortieBattleManager_Read(bool is_boss, bool last_cell, MapModel map) : base(string.Empty)
        {
            this._enemy_deck_id = -1;
            this._is_boss       = is_boss;
            this._last_cell     = last_cell;
            this._map           = map;
            DebugBattleMaker.LoadBattleData(out this._tmp_day, out this._tmp_night, out this._tmp_result);
            BattleHeader header;

            if (this._tmp_day == null)
            {
                this._war_type   = enumMapWarType.Midnight;
                this._phase      = CombatPhase.NIGHT;
                this._battleData = this._tmp_night;
                header           = this._battleData.NightBattle.Header;
            }
            else
            {
                this._war_type   = enumMapWarType.Normal;
                this._phase      = CombatPhase.DAY;
                this._battleData = this._tmp_day;
                header           = this._battleData.DayBattle.Header;
                if (this._battleData.DayBattle.AirBattle2 != null)
                {
                    this._war_type = enumMapWarType.AirBattle;
                }
            }
            this._ships_f = base._CreateShipData_f(header, false);
            this._ships_e = base._CreateShipData_e(header, false);
        }
Esempio n. 3
0
        public PracticeBattleManager_Read(int deck_id, int enemy_deck_id, BattleFormationKinds1 formation_id)
        {
            _enemy_deck_id = enemy_deck_id;
            _war_type      = enumMapWarType.Normal;
            _is_boss       = false;
            DebugBattleMaker.LoadBattleData(out _tmp_day, out _tmp_night, out _tmp_result);
            _phase      = CombatPhase.DAY;
            _battleData = _tmp_day;
            BattleHeader header = _battleData.DayBattle.Header;

            _ships_f = _CreateShipData_f(header, practice: false);
            _ships_e = _CreateShipData_e(header, practice: false);
        }