Server.Misc.NotorietyHandlers.CheckHouseFlag C# (CSharp) Méthode

CheckHouseFlag() public static méthode

public static CheckHouseFlag ( Server.Mobile from, Server.Mobile m, Server.Point3D p, Server.Map map ) : bool
from Server.Mobile
m Server.Mobile
p Server.Point3D
map Server.Map
Résultat bool
        public static bool CheckHouseFlag( Mobile from, Mobile m, Point3D p, Map map )
        {
            BaseHouse house = BaseHouse.FindHouseAt( p, map, 16 );

            if( house == null || house.Public || !house.IsFriend( from ) )
                return false;

            if( m != null && house.IsFriend( m ) )
                return false;

            BaseCreature c = m as BaseCreature;

            if( c != null && !c.Deleted && c.Controlled && c.ControlMaster != null )
                return !house.IsFriend( c.ControlMaster );

            return true;
        }