Example #1
0
        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);
        }
Example #2
0
        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();
        }
Example #3
0
 		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;
 		}
Example #4
0
 			public CropTimer( BaseCrop item, TimeSpan Delay ): base ( Delay )
 			{
 				m_Crop = item;
 				Priority = TimerPriority.OneMinute;
 			}
Example #5
0
		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();
 		}
Example #6
0
 public CropTimer(BaseCrop item, TimeSpan Delay) : base(Delay)
 {
     m_Crop   = item;
     Priority = TimerPriority.OneMinute;
 }