Beispiel #1
0
        public __ShipModel_Attacker__(ShipModel baseModel, int index)
            : base(null, null, 0, null, null)
        {
            _mst_data             = Mst_DataManager.Instance.Mst_ship[baseModel.MstId];
            _baseModel            = baseModel;
            _base_data            = new __ShipModel_Battle_BaseData__();
            _base_data.Index      = base.Index;
            _base_data.IsFriend   = true;
            _base_data.IsPractice = false;
            _slotitems            = new List <SlotitemModel_Battle>();
            List <SlotitemModel> slotitemList = baseModel.SlotitemList;

            for (int i = 0; i < slotitemList.Count; i++)
            {
                SlotitemModel slotitemModel = slotitemList[i];
                if (slotitemModel == null)
                {
                    _slotitems.Add(null);
                }
                else
                {
                    _slotitems.Add(new SlotitemModel_Battle(slotitemList[i].MstId));
                }
            }
            if (_baseModel.HasExSlot() && _baseModel.SlotitemEx != null)
            {
                int mstId = _baseModel.SlotitemEx.MstId;
                _slotitemex = new SlotitemModel_Battle(mstId);
            }
        }
Beispiel #2
0
 public __ShipModel_Battle__(Mst_ship mst_data, __ShipModel_Battle_BaseData__ baseData, int hp, List <SlotitemModel_Battle> slotitems, SlotitemModel_Battle slotitemex)
 {
     _mst_data   = mst_data;
     _base_data  = baseData;
     _hp         = hp;
     _slotitems  = slotitems;
     _slotitemex = slotitemex;
 }
 public ShipModel_Eater(Mst_ship mst_data, __ShipModel_Battle_BaseData__ baseData, int hp, List <SlotitemModel_Battle> slotitems, SlotitemModel_Battle slotitemex)
 {
     this._mst_data          = mst_data;
     this._base_data         = baseData;
     this._hp                = hp;
     this._slotitems_before  = slotitems;
     this._slotitemex_before = slotitemex;
     this._init();
 }
 public ShipModel_Defender(Mst_ship mst_data, __ShipModel_Battle_BaseData__ baseData, int hp, List <SlotitemModel_Battle> slotitems, SlotitemModel_Battle slotitemex)
 {
     this._mst_data          = mst_data;
     this._base_data         = baseData;
     this._hp_before         = hp;
     this._slotitems_before  = slotitems;
     this._slotitemex_before = slotitemex;
     this._hp_after          = (this._hp_pre_after = (this._hp_after_recovery = this._hp_before));
 }
Beispiel #5
0
 public ShipModel_BattleAll(BattleShipFmt fmt, int index, bool is_friend, bool practice)
 {
     Mst_DataManager.Instance.Mst_ship.TryGetValue(fmt.ShipId, out _mst_data);
     _base_data            = new __ShipModel_Battle_BaseData__();
     _base_data.IsPractice = practice;
     _base_data.IsFriend   = is_friend;
     _base_data.Index      = index;
     _base_data.Fmt        = fmt;
     _Init();
 }
Beispiel #6
0
 public ShipModel_BattleAll(Mst_ship mst_ship, __ShipModel_Battle_BaseData__ baseData)
 {
     this._mst_data  = mst_ship;
     this._base_data = baseData;
     this._Init();
 }
Beispiel #7
0
 public ShipModel_Attacker(Mst_ship mst_data, __ShipModel_Battle_BaseData__ baseData, int hp, List <SlotitemModel_Battle> slotitems, SlotitemModel_Battle slotitemex)
     : base(mst_data, baseData, hp, slotitems, slotitemex)
 {
 }