Beispiel #1
0
 private bool InitText(UISortieShip.Direction iDirection, enumMapEventType iEventType, enumMapWarType iWarType)
 {
     _uiItem.transform.localScaleZero();
     _clsAirRecResult.transform.localScaleZero();
     _uiText.transform.localScaleOne();
     SetBalloonPos(iDirection);
     SetText(iEventType, iWarType);
     return(true);
 }
        public void SetPassedDefaultColor()
        {
            enumMapEventType eventType = _clsCellModel.EventType;

            if (eventType == enumMapEventType.Stupid)
            {
                colorNo = 4;
            }
            ChkLinkCellAfterPassed();
        }
Beispiel #3
0
        private void SetText(enumMapEventType iEventType, enumMapWarType iWarType)
        {
            string text = string.Empty;

            if (iEventType == enumMapEventType.Stupid && iWarType == enumMapWarType.Midnight)
            {
                text = "艦隊針路\n選択可能!";
            }
            _uiText.text = text;
        }
 public Map_ResultFmt()
 {
     this.Rashin_id  = CompassType.None;
     this.Cell_no    = 0;
     this.Color_no   = 0;
     this.Event_id   = enumMapEventType.None;
     this.Event_kind = enumMapWarType.None;
     this.IsNext     = false;
     this.Comment    = MapCommentKind.None;
     this.Production = MapProductionKind.None;
     this.GetSpoint  = 0;
 }
Beispiel #5
0
 public Map_ResultFmt()
 {
     Rashin_id  = CompassType.None;
     Cell_no    = 0;
     Color_no   = 0;
     Event_id   = enumMapEventType.None;
     Event_kind = enumMapWarType.None;
     IsNext     = false;
     Comment    = MapCommentKind.None;
     Production = MapProductionKind.None;
     GetSpoint  = 0;
 }
        public void PlayBalloon(enumMapEventType iEventType, enumMapWarType iWarType, Action onFinished)
        {
            ProdBalloon balloon = ProdBalloon.Instantiate(((Component)_prefabProdBalloon).GetComponent <ProdBalloon>(), base.transform, _iDirection, iEventType, iWarType);

            balloon.depth = _uiShipSprite.depth + 1;
            balloon.ShowHide().setOnComplete((Action) delegate
            {
                Dlg.Call(ref onFinished);
                UnityEngine.Object.Destroy(balloon.gameObject);
                Mem.Del(ref balloon);
            });
        }
 public void SetMember(CompassType rashin_id, Mst_mapcell2 target_cell, MapItemGetFmt item, List <MapItemGetFmt> clearItems, MapHappningFmt happning, MapCommentKind comment, MapProductionKind production, AirReconnaissanceFmt airSearch, EventMapInfo eventMap, List <int> selectcell, List <int> newOpenMap, int spoint)
 {
     this.Rashin_id = rashin_id;
     this.Cell_no   = target_cell.No;
     if (selectcell != null)
     {
         this.SelectCells = Enumerable.ToList <int>(selectcell);
     }
     this.Color_no          = target_cell.Color_no;
     this.Event_id          = target_cell.Event_1;
     this.Event_kind        = target_cell.Event_2;
     this.IsNext            = target_cell.IsNext();
     this.Comment           = comment;
     this.Production        = production;
     this.AirReconnaissance = airSearch;
     this.ItemGet           = item;
     this.MapClearItem      = clearItems;
     this.Happning          = happning;
     this.MapHp             = eventMap;
     this.NewOpenMapId      = newOpenMap;
     this.GetSpoint         = spoint;
 }
Beispiel #8
0
 public void SetMember(CompassType rashin_id, Mst_mapcell2 target_cell, MapItemGetFmt item, List <MapItemGetFmt> clearItems, MapHappningFmt happning, MapCommentKind comment, MapProductionKind production, AirReconnaissanceFmt airSearch, EventMapInfo eventMap, List <int> selectcell, List <int> newOpenMap, int spoint)
 {
     Rashin_id = rashin_id;
     Cell_no   = target_cell.No;
     if (selectcell != null)
     {
         SelectCells = selectcell.ToList();
     }
     Color_no          = target_cell.Color_no;
     Event_id          = target_cell.Event_1;
     Event_kind        = target_cell.Event_2;
     IsNext            = target_cell.IsNext();
     Comment           = comment;
     Production        = production;
     AirReconnaissance = airSearch;
     ItemGet           = item;
     MapClearItem      = clearItems;
     Happning          = happning;
     MapHp             = eventMap;
     NewOpenMapId      = newOpenMap;
     GetSpoint         = spoint;
 }
        public void SetMessage(enumMapEventType iType, enumMapWarType iWarType)
        {
            string message = string.Empty;

            if (iType == enumMapEventType.Stupid)
            {
                switch (iWarType)
                {
                case enumMapWarType.None:
                    message = "気のせいだった。";
                    break;

                case enumMapWarType.Normal:
                    message = "敵影を見ず。";
                    break;

                default:
                    message = string.Empty;
                    break;
                }
            }
            SetMessage(message);
        }
        public void SetMessage(enumMapEventType iType, enumMapWarType iWarType)
        {
            string message = string.Empty;

            if (iType == enumMapEventType.Stupid)
            {
                if (iWarType != enumMapWarType.None)
                {
                    if (iWarType != enumMapWarType.Normal)
                    {
                        message = string.Empty;
                    }
                    else
                    {
                        message = "敵影を見ず。";
                    }
                }
                else
                {
                    message = "気のせいだった。";
                }
            }
            this.SetMessage(message);
        }
        public void Play(enumMapEventType iEventType, enumMapWarType iWarType, Action <bool> onFinished)
        {
            this._actOnFinished = onFinished;
            switch (iEventType)
            {
            case enumMapEventType.NOT_USE:
                this.OnFinished();
                break;

            case enumMapEventType.None:
                this.OnFinished();
                break;

            case enumMapEventType.ItemGet:
            {
                UIMapManager uIMapManager = SortieMapTaskManager.GetUIMapManager();
                uIMapManager.UpdateCellState(uIMapManager.nextCell.cellModel.CellNo, true);
                MapEventItemModel itemEvent = SortieBattleTaskManager.GetMapManager().GetItemEvent();
                EventItemGet      eig       = new EventItemGet(itemEvent);
                eig.PlayAnimation().Subscribe(delegate(bool _)
                    {
                        eig.Dispose();
                        Mem.Del <EventItemGet>(ref eig);
                        this.OnFinished();
                    });
                break;
            }

            case enumMapEventType.Uzushio:
            {
                UIMapManager uIMapManager2 = SortieMapTaskManager.GetUIMapManager();
                uIMapManager2.UpdateCellState(uIMapManager2.nextCell.cellModel.CellNo, true);
                MapEventHappeningModel happeningEvent = SortieBattleTaskManager.GetMapManager().GetHappeningEvent();
                EventMailstrom         em             = new EventMailstrom(happeningEvent);
                em.PlayAnimation().Subscribe(delegate(bool _)
                    {
                        em.Dispose();
                        Mem.Del <EventMailstrom>(ref em);
                        this.OnFinished();
                    });
                break;
            }

            case enumMapEventType.War_Normal:
            case enumMapEventType.War_Boss:
            {
                UIMapManager uIMapManager3 = SortieMapTaskManager.GetUIMapManager();
                uIMapManager3.UpdateCellState(uIMapManager3.nextCell.cellModel.CellNo, true);
                Observable.FromCoroutine(() => this.EventEnemy(iEventType), false).Subscribe <Unit>();
                break;
            }

            case enumMapEventType.Stupid:
                Observable.FromCoroutine <bool>((IObserver <bool> observer) => this.PlayStupid(observer, iWarType)).Subscribe(delegate(bool _)
                {
                    this.OnFinished();
                });
                break;

            case enumMapEventType.AirReconnaissance:
            {
                UIMapManager uIMapManager4 = SortieMapTaskManager.GetUIMapManager();
                uIMapManager4.UpdateCellState(uIMapManager4.nextCell.cellModel.CellNo, true);
                MapEventAirReconnaissanceModel airReconnaissanceEvent = SortieBattleTaskManager.GetMapManager().GetAirReconnaissanceEvent();
                EventAirReconnaissance         ear = new EventAirReconnaissance(airReconnaissanceEvent);
                ear.PlayAnimation().Subscribe(delegate(bool _)
                    {
                        ear.Dispose();
                        Mem.Del <EventAirReconnaissance>(ref ear);
                        this.OnFinished();
                    });
                break;
            }

            case enumMapEventType.PortBackEo:
            {
                UIMapManager uIMapManager5 = SortieMapTaskManager.GetUIMapManager();
                uIMapManager5.UpdateCellState(uIMapManager5.nextCell.cellModel.CellNo, true);
                Observable.FromCoroutine <bool>((IObserver <bool> observer) => this.PlayPortBackEo(observer)).Subscribe(delegate(bool _)
                    {
                        this.OnFinished();
                    });
                break;
            }
            }
        }
 private IEnumerator EventEnemy(enumMapEventType iEventType)
 {
     Events.< EventEnemy > c__Iterator11D <EventEnemy> c__Iterator11D = new Events.< EventEnemy > c__Iterator11D();
Beispiel #13
0
        public static ProdBalloon Instantiate(ProdBalloon prefab, Transform parent, UISortieShip.Direction iDirection, enumMapEventType iEventType, enumMapWarType iWarType)
        {
            ProdBalloon prodBalloon = UnityEngine.Object.Instantiate(prefab);

            prodBalloon.transform.parent = parent;
            prodBalloon.transform.localPositionZero();
            prodBalloon.transform.localScaleZero();
            prodBalloon.InitText(iDirection, iEventType, iWarType);
            return(prodBalloon);
        }
        public static ProdBalloon Instantiate(ProdBalloon prefab, Transform parent, UISortieShip.Direction iDirection, enumMapEventType iEventType, enumMapWarType iWarType)
        {
            ProdBalloon prodBalloon = Object.Instantiate <ProdBalloon>(prefab);

            prodBalloon.get_transform().set_parent(parent);
            prodBalloon.get_transform().localPositionZero();
            prodBalloon.get_transform().localScaleZero();
            prodBalloon.InitText(iDirection, iEventType, iWarType);
            return(prodBalloon);
        }
Beispiel #15
0
        private IEnumerator EventEnemy(enumMapEventType iEventType)
        {
            SortieBattleTaskManager.GetMapManager();
            UIMapManager   uimm  = SortieMapTaskManager.GetUIMapManager();
            UIAreaMapFrame uiamf = SortieMapTaskManager.GetUIAreaMapFrame();

            uimm.nextCell.PlayRipple(Color.red);
            yield return(SortieMapTaskManager.GetUIMapManager().sortieShip.PlayExclamationPoint().StartAsCoroutine());

            if (SortieMapTaskManager.GetShortCutSwitch().isShortCut&& SortieMapTaskManager.GetShortCutSwitch().isValid)
            {
                UIWobblingIcon uiwi2 = uimm.wobblingIcons.wobblingIcons[uimm.nextCell.cellModel.CellNo];
                if (uiwi2 != null)
                {
                    bool isWait2 = true;
                    uiwi2.Show().setOnComplete((Action) delegate
                    {
                        isWait2 = false;
                    });
                    while (!isWait2)
                    {
                        yield return(Observable.NextFrame(FrameCountType.EndOfFrame).StartAsCoroutine());
                    }
                    yield return(new WaitForSeconds(1.5f));
                }
                SortieBattleTaskManager.ReqMode(SortieBattleMode.BattleCut);
                SortieMapTaskManager.GetUIAreaMapFrame().Hide();
                uimm.nextCell.StopRipple();
                if (uiwi2 != null)
                {
                    uiwi2.Hide().setOnComplete((Action) delegate
                    {
                        UnityEngine.Object.Destroy(uiwi2.gameObject);
                    });
                }
                yield return(null);

                yield break;
            }
            UIWobblingIcon uiwi = uimm.wobblingIcons.wobblingIcons[uimm.nextCell.cellModel.CellNo];

            if (uiwi != null)
            {
                bool isWait = true;
                uiwi.Show().setOnComplete((Action) delegate
                {
                    throw new NotImplementedException("なにこれ");
                    // base._003CisWait_003E__6 = false;
                });
                while (!isWait)
                {
                    yield return(Observable.NextFrame(FrameCountType.EndOfFrame).StartAsCoroutine());
                }
                yield return(new WaitForSeconds(1.5f));
            }
            _isNormalBattle = true;
            uiamf.ClearMessage();
            uimm.nextCell.StopRipple();
            OnFinished();
            yield return(null);
        }