Exemplo n.º 1
0
        public static List <BaseBoat> GetBoats(Mobile owner)
        {
            List <BaseBoat> list = new List <BaseBoat>();

            Account acct = owner.Account as Account;

            if (acct == null)
            {
                list.AddRange(BaseBoat.GetBoats(owner));
            }
            else
            {
                for (int i = 0; i < acct.Length; ++i)
                {
                    Mobile mob = acct[i];

                    if (mob != null)
                    {
                        list.AddRange(BaseBoat.GetBoats(mob));
                    }
                }
            }

            list.Sort(BoatComparer.Instance);

            return(list);
        }