예제 #1
0
        public bool IsFoothold()
        {
            if (OwnerPlayerID != Bot.Me.ID)
            {
                return(false);
            }

            return(Bonuses.Any(bonus =>
            {
                foreach (var r in bonus.Territories)
                {
                    if (r.OwnerPlayerID == TerritoryStanding.NeutralPlayerID)
                    {
                        return false;
                    }
                    if (r.ID != this.ID && r.OwnerPlayerID == Bot.Me.ID)
                    {
                        return false;
                    }
                }

                return true;
            }));
        }