コード例 #1
0
        public void AddShipInfo(FleetType type, ShipModel_Defender ship)
        {
            bool isAfter = false;

            if (ship.DmgStateBefore == DamageState_Battle.Tyuuha || ship.DmgStateBefore == DamageState_Battle.Taiha || ship.DmgStateBefore == DamageState_Battle.Gekichin)
            {
                isAfter = true;
            }
            if (type == FleetType.Friend)
            {
                _listShipDefenderF.Add(ship);
                _countF = _listShipDefenderF.Count;
                _listShipFriend[_countF - 1].mainTexture = ShipUtils.LoadTexture(ship, isAfter);
                _listShipFriend[_countF - 1].MakePixelPerfect();
                _listShipFriend[_countF - 1].transform.localPosition = ShipUtils.GetShipOffsPos(ship, ship.DmgStateBefore, MstShipGraphColumn.CutIn);
            }
            else
            {
                _listShipDefenderE.Add(ship);
                _countE = _listShipDefenderE.Count;
                _listShipEnemy[_countE - 1].mainTexture = ShipUtils.LoadTexture(ship, isAfter);
                _listShipEnemy[_countE - 1].MakePixelPerfect();
                _listShipEnemy[_countE - 1].transform.localPosition = ShipUtils.GetShipOffsPos(ship, ship.DmgStateBefore, MstShipGraphColumn.CutIn);
            }
            _dicIsCutIn[type] = true;
        }
コード例 #2
0
        public void SetShipDrawType(FleetType iFleet, ShipDrawType iDrawType)
        {
            switch (iFleet)
            {
            case FleetType.Friend:
                _dicFriendBattleShips.ForEach(delegate(KeyValuePair <int, UIBattleShip> x)
                {
                    if (x.Value != null)
                    {
                        x.Value.drawType = iDrawType;
                    }
                });
                break;

            case FleetType.Enemy:
                _dicEnemyBattleShips.ForEach(delegate(KeyValuePair <int, UIBattleShip> x)
                {
                    if (x.Value != null)
                    {
                        x.Value.drawType = iDrawType;
                    }
                });
                break;
            }
        }
コード例 #3
0
        private void setAircraftTexture(FleetType type, bool isBomb, UITexture tex, int num)
        {
            bool is_friend = (type == FleetType.Friend) ? true : false;

            SlotitemModel_Battle[] array = (!isBomb) ? _clsAerial.GetRaigekiPlanes(is_friend) : _clsAerial.GetBakugekiPlanes(is_friend);
            int num2 = (array.Length <= 3) ? array.Length : 3;

            if (num2 < num + 1)
            {
                return;
            }
            switch (type)
            {
            case FleetType.Friend:
                tex.mainTexture = SingletonMonoBehaviour <ResourceManager> .Instance.SlotItemTexture.Load(array[num].MstId, 6);

                break;

            case FleetType.Enemy:
                if (BattleTaskManager.GetBattleManager() is PracticeBattleManager)
                {
                    tex.mainTexture = SingletonMonoBehaviour <ResourceManager> .Instance.SlotItemTexture.Load(array[num].MstId, 6);

                    break;
                }
                tex.mainTexture = KCV.Battle.Utils.SlotItemUtils.LoadTexture(array[num]);
                tex.flip        = UIBasicSprite.Flip.Horizontally;
                tex.MakePixelPerfect();
                tex.transform.localScale = ((array[num].MstId > 500) ? new Vector3(0.8f, 0.8f, 0.8f) : new Vector3(1f, 1f, 1f));
                break;
            }
        }
コード例 #4
0
 public bool Init(FleetType iType, string strFleetName, List <ShipModel_BattleAll> shipList, UITacticalSituationShipBanner prefab)
 {
     _iFleetType       = iType;
     _uiFleetName.text = strFleetName;
     CreateShipBanners(shipList, prefab);
     return(true);
 }
コード例 #5
0
        private void _createAircraft(Dictionary <int, UIBattleShip> ships, FleetType type, GameObject[] objects)
        {
            int num  = (type != FleetType.Friend) ? 1 : 0;
            int num2 = (type != FleetType.Friend) ? 0 : 1;

            for (int i = 0; i < ships.get_Count(); i++)
            {
                if (ships.get_Item(i) != null && ships.get_Item(i).shipModel != null)
                {
                    PlaneModelBase[] plane = this._clsKoukuu.GetPlane(ships.get_Item(i).shipModel.TmpId);
                    if (plane != null)
                    {
                        for (int j = 0; j < plane.Length; j++)
                        {
                            if (plane[j] != null)
                            {
                                this._listAircraft.Add(this._instantiateAircraft(objects[num].get_transform(), i, plane[j], type));
                                if (this._iType == CutInType.Both)
                                {
                                    this._listAircraft.Add(this._instantiateAircraft(objects[num2].get_transform(), i, plane[j], type));
                                }
                                break;
                            }
                        }
                    }
                }
            }
        }
コード例 #6
0
        private void SetCircleColor(FleetType iType)
        {
            Color color = (iType != 0) ? new Color(KCVColor.ColorRate(238f), KCVColor.ColorRate(35f), KCVColor.ColorRate(36f)) : new Color(KCVColor.ColorRate(0f), KCVColor.ColorRate(255f), KCVColor.ColorRate(255f));

            _mrBufferCircle.sharedMaterial.color = color;
            _cBaseColor = color;
        }
コード例 #7
0
        private void _playSE(FleetType fleetType)
        {
            bool flag  = false;
            bool flag2 = false;

            for (int i = 0; i < _dicHitType.Length; i++)
            {
                if (_dicHitType[i] == HitType.Torpedo)
                {
                    flag = true;
                }
                if (_dicHitType[i] == HitType.Miss)
                {
                    flag2 = true;
                }
            }
            if (flag)
            {
                KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.SE_932);
            }
            if (flag2)
            {
                KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.SE_908);
            }
        }
コード例 #8
0
        public void SetSplitCameras(bool isSplit, bool is2DCamUpScreen, FleetType iType)
        {
            Rect rect      = (!is2DCamUpScreen) ? new Rect(0f, 0f, 1f, 0.5f) : new Rect(0f, 0.5f, 1f, 1f);
            Rect rect3DCam = (!is2DCamUpScreen) ? new Rect(0f, 0.5f, 1f, 1f) : new Rect(0f, 0f, 1f, 0.5f);

            if (isSplit)
            {
                this._camCutInCamera.camera.set_rect(rect);
                this._camCutInCamera.camera.set_orthographicSize(0.5f);
                this._camCutInCamera.set_enabled(true);
                int cnt = 0;
                this._listCameras.ForEach(delegate(BattleFieldCamera x)
                {
                    if (cnt == (int)iType)
                    {
                        x.viewportRect = rect3DCam;
                        x.isCulling    = true;
                    }
                    else
                    {
                        x.isCulling = false;
                    }
                    cnt++;
                });
            }
            else
            {
                this.SetSplitCameras(isSplit);
            }
            this._isSplit = isSplit;
        }
コード例 #9
0
        private void SetCircleColor(FleetType iType)
        {
            Color color = (iType != FleetType.Friend) ? new Color(KCVColor.ColorRate(238f), KCVColor.ColorRate(35f), KCVColor.ColorRate(36f)) : new Color(KCVColor.ColorRate(0f), KCVColor.ColorRate(255f), KCVColor.ColorRate(255f));

            this._mrBufferCircle.get_sharedMaterial().set_color(color);
            this._cBaseColor = color;
        }
コード例 #10
0
 private bool Init(FleetType iType)
 {
     ReflectionMaterial();
     SetCircleColor(iType);
     SetCircleSize(iType);
     return(true);
 }
コード例 #11
0
        private void _createAircraft(Dictionary <int, UIBattleShip> ships, FleetType type, GameObject[] objects)
        {
            int num  = (type != 0) ? 1 : 0;
            int num2 = (type == FleetType.Friend) ? 1 : 0;

            for (int i = 0; i < ships.Count; i++)
            {
                if (!(ships[i] != null) || ships[i].shipModel == null)
                {
                    continue;
                }
                PlaneModelBase[] plane = _clsKoukuu.GetPlane(ships[i].shipModel.TmpId);
                if (plane == null)
                {
                    continue;
                }
                for (int j = 0; j < plane.Length; j++)
                {
                    if (plane[j] != null)
                    {
                        _listAircraft.Add(_instantiateAircraft(objects[num].transform, i, plane[j], type));
                        if (_iType == CutInType.Both)
                        {
                            _listAircraft.Add(_instantiateAircraft(objects[num2].transform, i, plane[j], type));
                        }
                        break;
                    }
                }
            }
        }
コード例 #12
0
        private void _setExplotion()
        {
            FleetType fleetType = (_attackState != AttackState.FriendExplosion) ? FleetType.Enemy : FleetType.Friend;
            int       num       = (fleetType != 0) ? _fBattleship.Count : _eBattleship.Count;

            Vector3[] array = _setHpPosition(fleetType, num);
            for (int i = 0; i < num; i++)
            {
                _battleHpGauges.Show(i, array[i], new Vector3(0.35f, 0.35f, 0.35f), isScale: false);
                BattleHPGauges battleHpGauges = _battleHpGauges;
                int            num2           = i;
                Vector3        damagePosition = _battleHpGauges.GetDamagePosition(i);
                battleHpGauges.SetDamagePosition(num2, new Vector3(damagePosition.x, -525f, 0f));
                _battleHpGauges.PlayHp(i, null);
            }
            _setShinking(fleetType);
            _createExplotion((fleetType == FleetType.Friend) ? true : false);
            if (_listExplosion != null)
            {
                KCV.Utils.SoundUtils.PlaySE((_listExplosion.Count <= 1) ? SEFIleInfos.SE_930 : SEFIleInfos.SE_931);
                Observable.FromCoroutine(_explosionPlay).Subscribe(delegate
                {
                });
            }
            foreach (ParticleSystem item in _listMiss)
            {
                item.Play();
            }
            _playSE(fleetType);
        }
コード例 #13
0
 public FleetData(IEnumerable <ShipData> ships, string name, FleetType type, int[] rank = null)
 {
     this.Ships      = new ItemsCollection <ShipData>(ships);
     this._Name      = name;
     this._FleetType = type;
     this._Rank      = rank ?? new[] { 0 };
 }
コード例 #14
0
        private void _setShinking(FleetType type)
        {
            if (type == FleetType.Friend)
            {
                BattleTaskManager.GetBattleShips().UpdateDamageAll(_clsKoukuu, isFriend: false);
            }
            for (int i = 0; i < _dicBakuraiModel[type].Length; i++)
            {
                if (_dicBakuraiModel[type][i] == null)
                {
                    continue;
                }
                ShipModel_Defender defender = _dicBakuraiModel[type][i].Defender;
                if (defender.DmgStateAfter == DamageState_Battle.Gekichin)
                {
                    switch (type)
                    {
                    case FleetType.Friend:
                        _eBattleship[i].PlayProdSinking(null);
                        break;

                    case FleetType.Enemy:
                        _fBattleship[i].PlayProdSinking(null);
                        break;
                    }
                }
            }
        }
コード例 #15
0
        private void _setProtect(FleetType type)
        {
            int num  = (type == FleetType.Friend) ? 1 : 0;
            int num2 = 0;

            while (true)
            {
                if (num2 < _dicBakuraiModel[type].Length)
                {
                    if (_dicBakuraiModel[type][num2] != null && _dicBakuraiModel[type][num2].GetProtectEffect())
                    {
                        break;
                    }
                    num2++;
                    continue;
                }
                return;
            }
            _isProtect[num] = true;
            ShipModel_Defender defender = _dicBakuraiModel[type][num2].Defender;

            if (type == FleetType.Friend)
            {
                _rescueCutIn.AddShipList(_eBattleship[0], _eBattleship[defender.Index]);
            }
            else
            {
                _rescueCutIn.AddShipList(_fBattleship[0], _fBattleship[defender.Index]);
            }
        }
コード例 #16
0
 private bool Init(FleetType iType, Transform target)
 {
     this.ReflectionMaterial();
     this.SetCircleColor(iType);
     this.PlayGearAnimation();
     return(true);
 }
コード例 #17
0
ファイル: FleetManager.cs プロジェクト: memsyi/Cassida
 public BufferedFleet(int id, Vector2 position, FleetType fleetType, PhotonPlayer player)
 {
     ID        = id;
     Position  = position;
     FleetType = fleetType;
     Player    = player;
 }
 protected override void Awake()
 {
     base.Awake();
     this.GetComponentThis(ref this._uiPanel);
     if (this._uiOverlay == null)
     {
         Util.FindParentToChild <UITexture>(ref this._uiOverlay, base.get_transform(), "Overlay");
     }
     if (this._clsFormationResult == null)
     {
         this._clsFormationResult = new ProdShellingFormationJudge.FormationResult(base.get_transform().FindChild("FormationResult"));
     }
     if (this._listFormation == null)
     {
         using (IEnumerator enumerator = Enum.GetValues(typeof(FleetType)).GetEnumerator())
         {
             while (enumerator.MoveNext())
             {
                 FleetType fleetType = (FleetType)((int)enumerator.get_Current());
                 if (fleetType != FleetType.CombinedFleet)
                 {
                     this._listFormation.Add(new ProdShellingFormationJudge.Formation(base.get_transform().FindChild(string.Format("{0}Formation", fleetType.ToString()))));
                 }
             }
         }
     }
 }
コード例 #19
0
        public void AddShipInfo(FleetType type, ShipModel_Defender ship)
        {
            bool isAfter = false;

            if (ship.DmgStateBefore == DamageState_Battle.Tyuuha || ship.DmgStateBefore == DamageState_Battle.Taiha || ship.DmgStateBefore == DamageState_Battle.Gekichin)
            {
                isAfter = true;
            }
            if (type == FleetType.Friend)
            {
                this._listShipDefenderF.Add(ship);
                this._countF = this._listShipDefenderF.get_Count();
                this._listShipFriend.get_Item(this._countF - 1).mainTexture = ShipUtils.LoadTexture(ship, isAfter);
                this._listShipFriend.get_Item(this._countF - 1).MakePixelPerfect();
                this._listShipFriend.get_Item(this._countF - 1).get_transform().set_localPosition(ShipUtils.GetShipOffsPos(ship, ship.DmgStateBefore, MstShipGraphColumn.CutIn));
            }
            else
            {
                this._listShipDefenderE.Add(ship);
                this._countE = this._listShipDefenderE.get_Count();
                this._listShipEnemy.get_Item(this._countE - 1).mainTexture = ShipUtils.LoadTexture(ship, isAfter);
                this._listShipEnemy.get_Item(this._countE - 1).MakePixelPerfect();
                this._listShipEnemy.get_Item(this._countE - 1).get_transform().set_localPosition(ShipUtils.GetShipOffsPos(ship, ship.DmgStateBefore, MstShipGraphColumn.CutIn));
            }
            this._dicIsCutIn.set_Item(type, true);
        }
コード例 #20
0
 public bool _init()
 {
     this._fieldCamera   = BattleTaskManager.GetBattleCameras().friendFieldCamera;
     this._uiPanel       = new UIPanel[2];
     this._uiAirObjF     = new GameObject[2];
     this._uiAirObjE     = new GameObject[2];
     this._cloudPanel    = new UIPanel[2];
     this._bgTex         = new UITexture[2];
     this._cloudParPanel = new UIPanel[2];
     this._cloudPar      = new ParticleSystem[2];
     this._gunPar        = new ParticleSystem[2];
     this._labelPanel    = new UIPanel[2];
     this._supremacyTxt  = new UITexture[2];
     using (IEnumerator enumerator = Enum.GetValues(typeof(FleetType)).GetEnumerator())
     {
         while (enumerator.MoveNext())
         {
             FleetType fleetType = (FleetType)((int)enumerator.get_Current());
             if (fleetType != FleetType.CombinedFleet)
             {
                 Util.FindParentToChild <UIPanel>(ref this._uiPanel[(int)fleetType], base.get_transform(), string.Format("{0}Panel", fleetType.ToString()));
                 if (this._uiAirObjF[(int)fleetType] == null)
                 {
                     this._uiAirObjF[(int)fleetType] = this._uiPanel[(int)fleetType].get_transform().FindChild("FAircraft").get_gameObject();
                 }
                 if (this._uiAirObjE[(int)fleetType] == null)
                 {
                     this._uiAirObjE[(int)fleetType] = this._uiPanel[(int)fleetType].get_transform().FindChild("EAircraft").get_gameObject();
                 }
                 Util.FindParentToChild <UIPanel>(ref this._cloudPanel[(int)fleetType], base.get_transform(), string.Format("{0}CloudPanel", fleetType.ToString()));
                 Util.FindParentToChild <UITexture>(ref this._bgTex[(int)fleetType], this._cloudPanel[(int)fleetType].get_transform(), "Bg");
                 Util.FindParentToChild <UIPanel>(ref this._cloudParPanel[(int)fleetType], base.get_transform(), string.Format("{0}CloudParPanel", fleetType.ToString()));
                 Util.FindParentToChild <ParticleSystem>(ref this._gunPar[(int)fleetType], this._cloudPanel[(int)fleetType].get_transform(), "Gun");
                 Util.FindParentToChild <UIPanel>(ref this._labelPanel[(int)fleetType], base.get_transform(), string.Format("{0}LabelPanel", fleetType.ToString()));
                 Util.FindParentToChild <UITexture>(ref this._supremacyTxt[(int)fleetType], this._labelPanel[(int)fleetType].get_transform(), "SupremacyTxt");
             }
         }
     }
     this._labelPanel[1].SetActive(false);
     if (this._iType == CutInType.Both)
     {
         this._labelPanel[0].SetLayer(8);
         this._labelPanel[1].SetLayer(1);
         this._labelPanel[1].SetActive(true);
     }
     else if (this._iType == CutInType.EnemyOnly)
     {
         this._supremacyTxt[0].get_transform().set_localScale(Vector3.get_one());
         this._labelPanel[0].SetLayer(14);
     }
     else if (this._iType == CutInType.FriendOnly)
     {
         this._supremacyTxt[0].get_transform().set_localScale(Vector3.get_one());
         this._labelPanel[0].SetLayer(14);
     }
     this._createAsyncAircrafts();
     return(true);
 }
コード例 #21
0
 private void _setShipTexture(FleetType type)
 {
     if (type == FleetType.Friend)
     {
         List <ShipModel_Attacker> list = (this._koukuuModel.GetCaptainShip(true) == null) ? null : this._koukuuModel.GetAttackers(true);
         if (list != null)
         {
             this._uiShip[0].mainTexture = KCV.Battle.Utils.ShipUtils.LoadTexture(list.get_Item(0));
             this._uiShip[0].MakePixelPerfect();
             this._uiShip[0].get_transform().set_localPosition(KCV.Battle.Utils.ShipUtils.GetShipOffsPos(list.get_Item(0), MstShipGraphColumn.CutInSp1));
             if (list.get_Count() >= 2)
             {
                 this._uiShip[1].mainTexture = KCV.Battle.Utils.ShipUtils.LoadTexture(list.get_Item(1));
                 this._uiShip[1].MakePixelPerfect();
                 this._uiShip[1].get_transform().set_localPosition(KCV.Battle.Utils.ShipUtils.GetShipOffsPos(list.get_Item(1), MstShipGraphColumn.CutInSp1));
             }
             else
             {
                 this._uiShip[1].mainTexture = null;
             }
         }
         else
         {
             this._uiShip[0].mainTexture = null;
             this._uiShip[1].mainTexture = null;
         }
     }
     else if (type == FleetType.Enemy)
     {
         List <ShipModel_Attacker> list2 = (this._koukuuModel.GetCaptainShip(false) == null) ? null : this._koukuuModel.GetAttackers(false);
         if (list2 != null)
         {
             this._uiShip[0].mainTexture = KCV.Battle.Utils.ShipUtils.LoadTexture(list2.get_Item(0));
             this._uiShip[0].MakePixelPerfect();
             this._uiShip[0].flip = UIBasicSprite.Flip.Horizontally;
             Vector3 shipOffsPos = KCV.Battle.Utils.ShipUtils.GetShipOffsPos(list2.get_Item(0), MstShipGraphColumn.CutInSp1);
             this._uiShip[0].get_transform().set_localPosition(new Vector3(shipOffsPos.x * -1f, shipOffsPos.y, shipOffsPos.z));
             if (list2.get_Count() >= 2)
             {
                 this._uiShip[1].mainTexture = KCV.Battle.Utils.ShipUtils.LoadTexture(list2.get_Item(1));
                 this._uiShip[1].MakePixelPerfect();
                 this._uiShip[1].flip = UIBasicSprite.Flip.Horizontally;
                 Vector3 shipOffsPos2 = KCV.Battle.Utils.ShipUtils.GetShipOffsPos(list2.get_Item(1), MstShipGraphColumn.CutInSp1);
                 this._uiShip[1].get_transform().set_localPosition(new Vector3(shipOffsPos2.x * -1f, shipOffsPos2.y, shipOffsPos2.z));
             }
             else
             {
                 this._uiShip[1].mainTexture = null;
             }
         }
         else
         {
             this._uiShip[0].mainTexture = null;
             this._uiShip[1].mainTexture = null;
         }
     }
 }
コード例 #22
0
        public void SwitchMainCamera(FleetType iType)
        {
            int cnt = 0;

            this._listCameras.ForEach(delegate(BattleFieldCamera x)
            {
                x.isCulling = (cnt == (int)iType);
                cnt++;
            });
        }
コード例 #23
0
ファイル: DataBase.cs プロジェクト: YSRKEN/AWSR
 public KammusuData(string name, FleetType type, int antiAir, int slotCount, int[] airs, int[] weaponId, bool isKammusu)
 {
     Name      = name;
     Type      = type;
     AntiAir   = antiAir;
     SlotCount = slotCount;
     Airs      = airs;
     WeaponId  = weaponId;
     IsKammusu = isKammusu;
 }
コード例 #24
0
 private void _setParticlePanel(FleetType type, Transform trans)
 {
     this._cloudParPanel[(int)type] = base.get_transform().FindChild(string.Format("{0}CloudParPanel", type.ToString())).GetComponent <UIPanel>();
     this._cloudParPanel[(int)type].get_transform().set_parent(trans);
     this._cloudParPanel[(int)type].get_transform().set_localScale(Vector3.get_one());
     this._cloudParPanel[(int)type].get_transform().set_localPosition(Vector3.get_one());
     this._cloudPar[(int)type] = this._cloudParPanel[(int)type].get_transform().FindChild("Smoke").GetComponent <ParticleSystem>();
     this._cloudPar[(int)type].get_transform().set_localEulerAngles((type != FleetType.Friend) ? new Vector3(0f, 90f, 90f) : new Vector3(0f, -90f, 90f));
     this._cloudPar[(int)type].Play();
 }
コード例 #25
0
 private void _setParticlePanel(FleetType type, Transform trans)
 {
     _cloudParPanel[(int)type] = ((Component)base.transform.FindChild($"{type.ToString()}CloudParPanel")).GetComponent <UIPanel>();
     _cloudParPanel[(int)type].transform.parent        = trans;
     _cloudParPanel[(int)type].transform.localScale    = Vector3.one;
     _cloudParPanel[(int)type].transform.localPosition = Vector3.one;
     _cloudPar[(int)type] = ((Component)_cloudParPanel[(int)type].transform.FindChild("Smoke")).GetComponent <ParticleSystem>();
     ((Component)_cloudPar[(int)type]).transform.localEulerAngles = ((type != 0) ? new Vector3(0f, 90f, 90f) : new Vector3(0f, -90f, 90f));
     _cloudPar[(int)type].Play();
 }
コード例 #26
0
 private void _setAircraftTexture(FleetType type)
 {
     if (type == FleetType.Friend)
     {
         this._setAircraftTexture(true);
     }
     else if (type == FleetType.Enemy)
     {
         this._setAircraftTexture(false);
     }
 }
コード例 #27
0
        private void OnShellingFinished()
        {
            FleetType fleetType = (!this._clsHougekiModel.Attacker.IsFriend()) ? FleetType.Enemy : FleetType.Friend;

            if (!this._dicAttackFleet.get_Item(fleetType))
            {
                this._dicAttackFleet.set_Item(fleetType, true);
            }
            this._isFinished = true;
            Dlg.Call(ref this._actCallback);
        }
コード例 #28
0
 public void CreateHpGauge(FleetType type)
 {
     if (_battleHpGauges == null)
     {
         _battleHpGauges = new BattleHPGauges();
     }
     for (int i = 0; i < _defenders.Count; i++)
     {
         _battleHpGauges.AddInstantiates(base.gameObject, isFriend: true, isLight: true, isT: false, isNumber: false);
     }
 }
コード例 #29
0
 // 艦種を文字列に変換する
 public static string ToStr(this FleetType fleetType)
 {
     string[] name =
     {
         "無し",    "魚雷艇", "駆逐艦",  "軽巡洋艦",  "重雷装巡洋艦", "重巡洋艦",
         "航空巡洋艦", "軽空母", "巡洋戦艦", "戦艦",    "航空戦艦",   "正規空母",
         "陸上型",   "潜水艦", "潜水空母", "輸送艦",   "水上機母艦",  "揚陸艦",
         "装甲空母",  "工作艦", "潜水母艦", "練習巡洋艦", "給油艦"
     };
     return(name[(int)fleetType]);
 }
コード例 #30
0
 public void CreateHpGauge(FleetType type)
 {
     if (this._battleHpGauges == null)
     {
         this._battleHpGauges = new BattleHPGauges();
     }
     for (int i = 0; i < this._defenders.get_Count(); i++)
     {
         this._battleHpGauges.AddInstantiates(base.get_gameObject(), true, true, false, false);
     }
 }
コード例 #31
0
        public LandBaseAirCombatResultViewModel(LandBaseAirCombatResult result, FleetType type)
        {
            this.Name = result.Name;
            this.Stage1 = new AirCombatResultViewModel(result.Stage1, type);
            this.Stage2 = new AirCombatResultViewModel(result.Stage2, type);
            this.Count = this.Stage1.Count;
            this.LostCount = this.Stage1.LostCount + this.Stage2.LostCount;
            this.RemainingCount = this.Count - this.LostCount;

            this.IsHappen = this.Count > 0;

            this.Squadrons = (type == FleetType.Friend) ? result.Squadrons : new Squadron[0];
        }
コード例 #32
0
 public AirCombatResultViewModel(AirCombatResult result, FleetType type)
 {
     if (type == FleetType.First)
     {
         this.Name = result.Name;
         this.IsHappen = result.IsHappen;
         this.Count = result.FriendCount;
         this.LostCount = result.FriendLostCount;
     }
     if (type == FleetType.Enemy)
     {
         this.Name = result.Name;
         this.IsHappen = result.IsHappen;
         this.Count = result.EnemyCount;
         this.LostCount = result.EnemyLostCount;
     }
 }
コード例 #33
0
 public BattleFleet(FleetType type)
 {
     this.Type = type;
     this.Fleets = EmptyFleet;
 }