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(); }
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; }
public void EndPlace(Mobile from, Point3D loc) { if (from == null) { return; } this.Delete(); SiegeRam ram = new SiegeRam(); ram.Location = loc; ram.Map = from.Map; }
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(); }
public void EndPlace( Mobile from, Point3D loc ) { if (from == null) return; this.Delete(); SiegeRam ram = new SiegeRam(); ram.Location = loc; ram.Map = from.Map; }