Ejemplo n.º 1
0
        public IEnumerable <TaxCollectorComplementaryInformations> GetTaxCollectorComplementaryInformations()
        {
            var informations = new List <TaxCollectorComplementaryInformations>();

            if (IsFighting && (Fighter.Fight is FightPvT))
            {
                var fight = Fighter.Fight as FightPvT;

                if (fight.State == FightState.Placement)
                {
                    informations.Add(new TaxCollectorWaitingForHelpInformations(
                                         new ProtectedEntityWaitingForHelpInfo(
                                             (int)(fight.GetAttackersPlacementTimeLeft().TotalMilliseconds / 100),
                                             (int)(FightPvT.GetDefendersWaitTimeForPlacement().TotalMilliseconds / 100),
                                             (sbyte)fight.GetDefendersLeftSlot())));
                }
            }
            informations.Add(new TaxCollectorLootInformations(GatheredKamas, GatheredExperience, Bag.BagWeight, Bag.BagValue));

            return(informations);
        }