Ejemplo n.º 1
0
		public void DoTimer(Mobile from, SiegeRam weapon, IEntity target, Point3D targetloc, Item projectile, TimeSpan damagedelay, int step)
		{
			if (m_Timer != null)
				m_Timer.Stop();

			if (step > 4 || step < 0) return;

			m_Timer = new InternalTimer(from, weapon, target, targetloc, projectile, damagedelay, step);
			m_Timer.Start();
		}
Ejemplo n.º 2
0
 public InternalTimer(Mobile from, SiegeRam weapon, IEntity target, Point3D targetloc, Item projectile, TimeSpan damagedelay, int step)
     : base(TimeSpan.FromMilliseconds(150))
 {
     Priority      = TimerPriority.FiftyMS;
     m_weapon      = weapon;
     m_Projectile  = projectile;
     m_target      = target;
     m_targetloc   = targetloc;
     m_from        = from;
     m_step        = step;
     m_damagedelay = damagedelay;
 }
Ejemplo n.º 3
0
			public InternalTimer(Mobile from, SiegeRam weapon, IEntity target, Point3D targetloc, Item projectile, TimeSpan damagedelay, int step)
				: base(TimeSpan.FromMilliseconds(150))
			{
				Priority = TimerPriority.FiftyMS;
				m_weapon = weapon;
				m_Projectile = projectile;
				m_target = target;
				m_targetloc = targetloc;
				m_from = from;
				m_step = step;
				m_damagedelay = damagedelay;
			}
Ejemplo n.º 4
0
        public void EndPlace(Mobile from, Point3D loc)
        {
            if (from == null)
            {
                return;
            }

            this.Delete();
            SiegeRam ram = new SiegeRam();

            ram.Location = loc;
            ram.Map      = from.Map;
        }
Ejemplo n.º 5
0
        public void DoTimer(Mobile from, SiegeRam weapon, IEntity target, Point3D targetloc, Item projectile, TimeSpan damagedelay, int step)
        {
            if (m_Timer != null)
            {
                m_Timer.Stop();
            }

            if (step > 4 || step < 0)
            {
                return;
            }

            m_Timer = new InternalTimer(from, weapon, target, targetloc, projectile, damagedelay, step);
            m_Timer.Start();
        }
Ejemplo n.º 6
0
		public void EndPlace( Mobile from, Point3D loc )
		{
			if (from == null) return;

			this.Delete();
			SiegeRam ram = new SiegeRam();

			ram.Location = loc;
			ram.Map = from.Map;
		}