Server.Mobiles.BaseCreature.IsPetFriend C# (CSharp) Method

IsPetFriend() public method

public IsPetFriend ( Mobile m ) : bool
m Mobile
return bool
        public virtual bool IsPetFriend( Mobile m )
        {
            return ( m_Friends != null && m_Friends.Contains( m ) );
        }

Usage Example

コード例 #1
0
ファイル: PackHorse.cs プロジェクト: svvota/runuo
        public static bool CheckAccess( BaseCreature animal, Mobile from )
        {
            if ( from == animal || from.AccessLevel >= AccessLevel.GameMaster )
                return true;

            if ( from.Alive && animal.Controlled && !animal.IsDeadPet && ( from == animal.ControlMaster || from == animal.SummonMaster || animal.IsPetFriend( from ) ) )
                return true;

            return false;
        }
All Usage Examples Of Server.Mobiles.BaseCreature::IsPetFriend
BaseCreature