public virtual bool CheckRange(Mobile from, int Range, BaseCrop m_Crop, Point3D loc) { bool inRange = (from.Map == m_Crop.Map && from.InRange(loc, Range)); if (!inRange) { from.SendLocalizedMessage(500446); // that is too far away. } return(inRange); }
public virtual void Start(BaseCrop item, TimeSpan AgeDelay) { m_AgeDelay = AgeDelay; NextAgeCheck = DateTime.Now + AgeDelay; if (m_CropTimer == null) { m_CropTimer = new CropTimer(this, AgeDelay); } m_CropTimer.Start(); }
public virtual bool CheckRange( Mobile from, int Range, BaseCrop m_Crop, Point3D loc ) { bool inRange = ( from.Map == m_Crop.Map && from.InRange( loc, Range ) ); if ( !inRange ) from.SendLocalizedMessage( 500446 ); // that is too far away. return inRange; }
public CropTimer( BaseCrop item, TimeSpan Delay ): base ( Delay ) { m_Crop = item; Priority = TimerPriority.OneMinute; }
public virtual void Start( BaseCrop item, TimeSpan AgeDelay ) { m_AgeDelay = AgeDelay; NextAgeCheck = DateTime.Now + AgeDelay; if( m_CropTimer == null ) m_CropTimer = new CropTimer( this, AgeDelay ); m_CropTimer.Start(); }
public CropTimer(BaseCrop item, TimeSpan Delay) : base(Delay) { m_Crop = item; Priority = TimerPriority.OneMinute; }