public AreaCommandImplementor()
		{
			Accessors = new string[]{ "Area", "Group" };
			SupportRequirement = CommandSupport.Area;
			SupportsConditionals = true;
			AccessLevel = AccessLevel.GameMaster;
			Usage = "Area <command> [condition]";
			Description = "Invokes the command on all appropriate objects in a targeted area. Optional condition arguments can further restrict the set of objects.";

			m_Instance = this;
		}
Ejemplo n.º 2
0
        public AreaCommandImplementor()
        {
            Accessors            = new string[] { "Area", "Group" };
            SupportRequirement   = CommandSupport.Area;
            SupportsConditionals = true;
            AccessLevel          = AccessLevel.GameMaster;
            Usage       = "Area <command> [condition]";
            Description = "Invokes the command on all appropriate objects in a targeted area. Optional condition arguments can further restrict the set of objects.";

            m_Instance = this;
        }
Ejemplo n.º 3
0
        public override void Process(Mobile from, BaseCommand command, string[] args)
        {
            AreaCommandImplementor impl = AreaCommandImplementor.Instance;

            if (impl == null)
            {
                return;
            }

            Map map = from.Map;

            if (map == null || map == Map.Internal)
            {
                return;
            }

            impl.OnTarget(from, map, Point3D.Zero, new Point3D(map.Width - 1, map.Height - 1, 0), new object[] { command, args });
        }
Ejemplo n.º 4
0
        public void Process(int range, Mobile from, BaseCommand command, string[] args)
        {
            AreaCommandImplementor impl = AreaCommandImplementor.Instance;

            if (impl == null)
            {
                return;
            }

            Map map = from.Map;

            if (map == null || map == Map.Internal)
            {
                return;
            }

            Point3D start = new Point3D(from.X - range, from.Y - range, from.Z);
            Point3D end   = new Point3D(from.X + range, from.Y + range, from.Z);

            impl.OnTarget(from, map, start, end, new object[] { command, args });
        }