public override void AddShowMark(COM_PLAYERCAMP targetCamp, HorizonConfig.ShowMark sm, int count)
        {
            if (targetCamp == null)
            {
                return;
            }
            if (targetCamp == 3)
            {
                for (int i = 0; i < this._campMarkers.Length; i++)
                {
                    if (i != HorizonMarkerByFow.TranslateCampToIndex(this.actor.TheActorMeta.ActorCamp))
                    {
                        HorizonMarkerByFow.CampMarker campMarker = this._campMarkers[i];
                        campMarker.AddShowMark(sm, count);
                        Player hostPlayer = Singleton <GamePlayerCenter> .get_instance().GetHostPlayer();

                        if (hostPlayer != null && hostPlayer.PlayerCamp == HorizonMarkerByFow.TranslateIndexToCamp(i))
                        {
                            this.RefreshVisible();
                        }
                    }
                }
            }
            else
            {
                HorizonMarkerByFow.CampMarker campMarker2 = this._campMarkers[HorizonMarkerByFow.TranslateCampToIndex(targetCamp)];
                campMarker2.AddShowMark(sm, count);
                Player hostPlayer2 = Singleton <GamePlayerCenter> .get_instance().GetHostPlayer();

                if (hostPlayer2 != null && targetCamp == hostPlayer2.PlayerCamp)
                {
                    this.RefreshVisible();
                }
            }
        }
 public void AddShowMark(HorizonConfig.ShowMark sm, int count)
 {
     this._showMarks[(int)sm] += count;
     if (this._showMarks[(int)sm] < 0)
     {
         this._showMarks[(int)sm] = 0;
     }
     this.ApplyVisibleRules();
 }
        public override bool HasShowMark(COM_PLAYERCAMP targetCamp, HorizonConfig.ShowMark sm)
        {
            if (this._campMarkers == null)
            {
                return(false);
            }
            int num = BattleLogic.MapOtherCampIndex(this.actor.TheActorMeta.ActorCamp, targetCamp);

            return(num >= 0 && num < this._campMarkers.Length && this._campMarkers[num].HasShowMark(sm));
        }
示例#4
0
        public override bool HasShowMark(COM_PLAYERCAMP targetCamp, HorizonConfig.ShowMark sm)
        {
            if (this._campMarkers == null)
            {
                return(false);
            }
            int index = BattleLogic.MapOtherCampIndex(base.actor.TheActorMeta.ActorCamp, targetCamp);

            return(((index >= 0) && (index < this._campMarkers.Length)) && this._campMarkers[index].HasShowMark(sm));
        }
示例#5
0
        public override byte QueryMarker(COM_PLAYERCAMP camp, HorizonConfig.ShowMark mark)
        {
            int index = BattleLogic.MapOtherCampIndex(base.actor.TheActorMeta.ActorCamp, camp);

            if ((index >= 0) && (index < this._campMarkers.Length))
            {
                return((byte)this._campMarkers[index]._showMarks[(int)mark]);
            }
            return(0);
        }
 public override void AddShowMark(COM_PLAYERCAMP targetCamp, HorizonConfig.ShowMark sm, int count)
 {
     if (this._campMarkers != null)
     {
         if (targetCamp == COM_PLAYERCAMP.COM_PLAYERCAMP_COUNT)
         {
             for (int i = 0; i < this._campMarkers.Length; i++)
             {
                 this._campMarkers[i].AddShowMark(sm, count);
             }
         }
         else
         {
             int num = BattleLogic.MapOtherCampIndex(this.actor.TheActorMeta.ActorCamp, targetCamp);
             if (num >= 0 && num < this._campMarkers.Length)
             {
                 this._campMarkers[num].AddShowMark(sm, count);
             }
         }
     }
 }
 public void AddShowMark(HorizonConfig.ShowMark sm, int count)
 {
     if (count >= 0)
     {
         byte[] showMarks = this._showMarks;
         showMarks[(int)sm] = showMarks[(int)sm] + (byte)count;
     }
     else
     {
         byte b = -(byte)count;
         if (this._showMarks[(int)sm] < b)
         {
             this._showMarks[(int)sm] = 0;
         }
         else
         {
             byte[] showMarks2 = this._showMarks;
             showMarks2[(int)sm] = showMarks2[(int)sm] - b;
         }
     }
 }
 public void AddShowMark(HorizonConfig.ShowMark sm, int count)
 {
     if (count >= 0)
     {
         byte[] expr_13_cp_0 = this._showMarks;
         expr_13_cp_0[(int)sm] = expr_13_cp_0[(int)sm] + (byte)count;
     }
     else
     {
         byte b = (byte)(-(byte)count);
         if (this._showMarks[(int)sm] < b)
         {
             this._showMarks[(int)sm] = 0;
         }
         else
         {
             byte[] expr_4B_cp_0 = this._showMarks;
             expr_4B_cp_0[(int)sm] = expr_4B_cp_0[(int)sm] - b;
         }
     }
 }
示例#9
0
        public void AddShowMark(COM_PLAYERCAMP targetCamp, HorizonConfig.ShowMark sm, int count)
        {
            if (this._campMarkers != null)
            {
                if (targetCamp == COM_PLAYERCAMP.COM_PLAYERCAMP_COUNT)
                {
                    for (int i = 0; i < this._campMarkers.Length; i++)
                    {
                        CampMarker marker      = this._campMarkers[i];
                        bool       ruleVisible = marker.RuleVisible;
                        marker.AddShowMark(sm, count);
                        Player hostPlayer = Singleton <GamePlayerCenter> .instance.GetHostPlayer();

                        if (((hostPlayer != null) && (marker.RuleVisible != ruleVisible)) && (i == BattleLogic.MapOtherCampIndex(base.actor.TheActorMeta.ActorCamp, hostPlayer.PlayerCamp)))
                        {
                            this.RefreshVisible();
                        }
                    }
                }
                else
                {
                    int index = BattleLogic.MapOtherCampIndex(base.actor.TheActorMeta.ActorCamp, targetCamp);
                    if ((index >= 0) && (index < this._campMarkers.Length))
                    {
                        CampMarker marker2 = this._campMarkers[index];
                        bool       flag2   = marker2.RuleVisible;
                        marker2.AddShowMark(sm, count);
                        Player player2 = Singleton <GamePlayerCenter> .instance.GetHostPlayer();

                        if (((player2 != null) && (marker2.RuleVisible != flag2)) && (targetCamp == player2.PlayerCamp))
                        {
                            this.RefreshVisible();
                        }
                    }
                }
            }
        }
 public override void AddShowMark(COM_PLAYERCAMP targetCamp, HorizonConfig.ShowMark sm, int count)
 {
     if (targetCamp == COM_PLAYERCAMP.COM_PLAYERCAMP_MID)
     {
         return;
     }
     if (targetCamp == COM_PLAYERCAMP.COM_PLAYERCAMP_COUNT)
     {
         for (int i = 0; i < this._campMarkers.Length; i++)
         {
             if (i != HorizonMarkerByFow.TranslateCampToIndex(this.actor.TheActorMeta.ActorCamp))
             {
                 HorizonMarkerByFow.CampMarker campMarker = this._campMarkers[i];
                 campMarker.AddShowMark(sm, count);
             }
         }
     }
     else
     {
         HorizonMarkerByFow.CampMarker campMarker2 = this._campMarkers[HorizonMarkerByFow.TranslateCampToIndex(targetCamp)];
         campMarker2.AddShowMark(sm, count);
     }
     this.RefreshVisible();
 }
 public bool HasShowMark(HorizonConfig.ShowMark sm)
 {
     return(this._showMarks[(int)sm] > 0);
 }
 public override bool HasShowMark(COM_PLAYERCAMP targetCamp, HorizonConfig.ShowMark sm)
 {
     return(targetCamp != COM_PLAYERCAMP.COM_PLAYERCAMP_MID && this._campMarkers[HorizonMarkerByFow.TranslateCampToIndex(targetCamp)].HasShowMark(sm));
 }
示例#13
0
 public virtual bool HasShowMark(COM_PLAYERCAMP targetCamp, HorizonConfig.ShowMark sm)
 {
     return(false);
 }
示例#14
0
 public virtual void AddShowMark(COM_PLAYERCAMP targetCamp, HorizonConfig.ShowMark sm, int count)
 {
 }
示例#15
0
 public virtual byte QueryMarker(COM_PLAYERCAMP camp, HorizonConfig.ShowMark mark)
 {
     return(0);
 }