Server.Items.HouseRaffleStone.HasEntered C# (CSharp) Method

HasEntered() private method

private HasEntered ( Server.Mobile from ) : bool
from Server.Mobile
return bool
        private bool HasEntered( Mobile from )
        {
            Account acc = from.Account as Account;

            if ( acc == null )
                return false;

            foreach ( RaffleEntry entry in m_Entries )
            {
                if ( entry.From != null )
                {
                    Account entryAcc = entry.From.Account as Account;

                    if ( entryAcc == acc )
                        return true;
                }
            }

            return false;
        }