Exemplo n.º 1
0
 public static Boolean IsRecent(String HuntName)
 {
     if (_hunts.ContainsKey(HuntName))
     {
         FoundHunt HuntData = (FoundHunt)_hunts[HuntName];
         if (!HuntData.isExpired())
         {
             return(true);
         }
     }
     return(false);
 }
Exemplo n.º 2
0
 public static void CheckSingle(String HuntName)
 {
     if (_hunts.ContainsKey(HuntName))
     {
         FoundHunt HuntData = (FoundHunt)_hunts[HuntName];
         if (HuntData.isExpired())
         {
             _hunts.Remove(HuntName);
             updateWidget();
         }
     }
 }
Exemplo n.º 3
0
 public static void Check()
 {
     foreach (DictionaryEntry hunt in _hunts)
     {
         string    HuntName = (String)hunt.Key;
         FoundHunt HuntData = (FoundHunt)hunt.Value;
         if (HuntData.isExpired())
         {
             _hunts.Remove(HuntName);
             updateWidget();
             break;
         }
     }
 }
Exemplo n.º 4
0
        public static Boolean HasRecentReportsInSameZone(String Rank, String Zone)
        {
            DateTime saveNow = DateTime.Now;

            foreach (DictionaryEntry hunt in _hunts)
            {
                string    HuntName = (String)hunt.Key;
                FoundHunt HuntData = (FoundHunt)hunt.Value;
                if (HuntData.rank == Rank && HuntData.location.zone == Zone && !HuntData.isExpired())
                {
                    return(true);
                }
            }
            return(false);
        }
Exemplo n.º 5
0
        public static Boolean CheckRecentReports()
        {
            DateTime saveNow = DateTime.Now;

            foreach (DictionaryEntry hunt in _hunts)
            {
                string    HuntName = (String)hunt.Key;
                FoundHunt HuntData = (FoundHunt)_hunts[HuntName];
                if (!HuntData.isExpired())
                {
                    return(true);
                }
            }
            return(false);
        }