public virtual SortieBattleManager BattleStart(BattleFormationKinds1 formationId)
        {
            Api_req_SortieBattle reqBattle = new Api_req_SortieBattle(this._req_map);
            bool   isBoss = base.NextCategory == enumMapEventType.War_Boss;
            string nextCellEnemyFleetName           = base.GetNextCellEnemyFleetName();
            SortieBattleManager sortieBattleManager = new SortieBattleManager(nextCellEnemyFleetName);

            sortieBattleManager.__Init__(reqBattle, base.NextEventType, formationId, this._map, this._maps, base.IsNextFinal(), isBoss);
            return(sortieBattleManager);
        }
Esempio n. 2
0
        public new RebellionBattleManager BattleStart(BattleFormationKinds1 formation_id)
        {
            Api_req_SortieBattle reqBattle = new Api_req_SortieBattle(_req_map);
            bool   isBoss = base.NextCategory == enumMapEventType.War_Boss;
            string nextCellEnemyFleetName = GetNextCellEnemyFleetName();
            RebellionBattleManager rebellionBattleManager = new RebellionBattleManager(nextCellEnemyFleetName);

            rebellionBattleManager.__Init__(reqBattle, base.NextEventType, formation_id, _map, IsNextFinal(), isBoss, _deck == _subDeck);
            return(rebellionBattleManager);
        }
        public SortieBattleManager BattleStart_Write(BattleFormationKinds1 formationId)
        {
            DebugBattleMaker.SerializeBattleStart();
            Api_req_SortieBattle reqBattle = new Api_req_SortieBattle(this._req_map);
            bool   isBoss = base.NextCategory == enumMapEventType.War_Boss;
            string nextCellEnemyFleetName = base.GetNextCellEnemyFleetName();
            SortieBattleManager_Write sortieBattleManager_Write = new SortieBattleManager_Write(nextCellEnemyFleetName);

            sortieBattleManager_Write.__Init__(reqBattle, base.NextEventType, formationId, this._map, this._maps, base.IsNextFinal(), isBoss);
            return(sortieBattleManager_Write);
        }
Esempio n. 4
0
 public override void __Init__(Api_req_SortieBattle reqBattle, enumMapWarType warType, BattleFormationKinds1 formationId, MapModel map, List <MapModel> maps, bool lastCell, bool isBoss)
 {
     base.__Init__(reqBattle, warType, formationId, map, maps, lastCell, isBoss);
     if (warType == enumMapWarType.Normal || warType == enumMapWarType.AirBattle)
     {
         DebugBattleMaker.SerializeDayBattle(this._battleData);
     }
     else if (warType == enumMapWarType.Midnight)
     {
         DebugBattleMaker.SerializeNightBattle(this._battleData);
     }
     else if (warType == enumMapWarType.Night_To_Day)
     {
         DebugBattleMaker.SerializeNightBattle(this._battleData);
     }
 }
Esempio n. 5
0
        public override void __Init__(Api_req_SortieBattle reqBattle, enumMapWarType warType, BattleFormationKinds1 formationId, MapModel map, List <MapModel> maps, bool lastCell, bool isBoss)
        {
            base.__Init__(reqBattle, warType, formationId, map, maps, lastCell, isBoss);
            switch (warType)
            {
            case enumMapWarType.Normal:
            case enumMapWarType.AirBattle:
                DebugBattleMaker.SerializeDayBattle(_battleData);
                break;

            case enumMapWarType.Midnight:
                DebugBattleMaker.SerializeNightBattle(_battleData);
                break;

            case enumMapWarType.Night_To_Day:
                DebugBattleMaker.SerializeNightBattle(_battleData);
                break;
            }
        }
Esempio n. 6
0
        public virtual void __Init__(Api_req_SortieBattle reqBattle, enumMapWarType warType, BattleFormationKinds1 formationId, MapModel map, List <MapModel> maps, bool lastCell, bool isBoss)
        {
            this._recovery_item_use_count_at_start = Comm_UserDatas.Instance.User_trophy.Use_recovery_item_count;
            this._enemy_deck_id = -1;
            this._reqBattle     = reqBattle;
            this._war_type      = warType;
            this._is_boss       = isBoss;
            this._last_cell     = lastCell;
            this._map           = map;
            this._maps          = maps;
            BattleHeader header = null;

            if (warType == enumMapWarType.Normal || warType == enumMapWarType.AirBattle)
            {
                this._battleData = this._reqBattle.GetDayPreBattleInfo(formationId).data;
                this._phase      = CombatPhase.DAY;
                header           = this._battleData.DayBattle.Header;
            }
            else if (warType == enumMapWarType.Midnight)
            {
                this._battleData = this._reqBattle.Night_Sp(formationId).data;
                this._phase      = CombatPhase.NIGHT;
                header           = this._battleData.NightBattle.Header;
            }
            else if (warType != enumMapWarType.Night_To_Day)
            {
                throw new Exception("Logic Error");
            }
            this._ships_f = base._CreateShipData_f(header, false);
            this._ships_e = base._CreateShipData_e(header, false);
            if (this._phase == CombatPhase.DAY)
            {
                base.__createCacheDataBeforeCommand__();
            }
            else
            {
                base.__createCacheDataNight__();
            }
        }
Esempio n. 7
0
 public virtual void __Init__(Api_req_SortieBattle reqBattle, enumMapWarType warType, BattleFormationKinds1 formationId, MapModel map, bool lastCell, bool isBoss, bool changeableDeck)
 {
     _changeable_deck = changeableDeck;
     base.__Init__(reqBattle, warType, formationId, map, null, lastCell, isBoss);
 }
Esempio n. 8
0
 public __CommandPhaseModel_Sortie__(BattleManager manager, Api_req_SortieBattle req)
     : base(manager)
 {
     _req = req;
 }