OnTargetCancel() protected method

protected OnTargetCancel ( Mobile from, TargetCancelType cancelType ) : void
from Mobile
cancelType TargetCancelType
return void
Example #1
0
        public static void Cancel(Mobile m)
        {
            NetState state1 = m.NetState;

            if (state1 != null)
            {
                state1.Send(CancelTarget.Instance);
            }
            Target target1 = m.Target;

            if (target1 != null)
            {
                target1.OnTargetCancel(m, TargetCancelType.Canceled);
            }
        }
Example #2
0
        public static void Cancel(Mobile m)
        {
            NetState ns = m.NetState;

            if (ns != null)
            {
                ns.Send(CancelTarget.Instance);
            }

            Target targ = m.Target;

            if (targ != null)
            {
                targ.OnTargetCancel(m, TargetCancelType.Canceled);
            }
        }
Example #3
0
        public static void Cancel(Mobile m)
        {
            GameClient ns = m.Client;

            if (ns != null)
            {
                ns.Send(CancelTarget.Instance);
            }

            Target targ = m.Target;

            if (targ != null)
            {
                targ.OnTargetCancel(m, TargetCancelType.Canceled);
            }
        }