public ClusterCollection(ClusterConditions CC,int updaterate=200, int refreshrate=100)
 {
     CurrentClusters=new List<Cluster>();
         lastClusterComputed=DateTime.Today;
         lastClusterRefresh=DateTime.Today;
         clusterConditions=CC;
         RefreshRate=refreshrate;
         UpdateRate=updaterate;
 }
Exemple #2
0
            internal List<Cluster> Clusters(ClusterConditions CC)
            {
                if (!AbilityClusters.ContainsKey(CC))
                     {
                          Logging.WriteVerbose("Creating new entry for ClusterConditions -- {0}", CC.ToString());
                          AbilityClusters.Add(CC, new ClusterCollection(CC));
                     }

                     if (AbilityClusters[CC].ShouldUpdateClusters)
                          AbilityClusters[CC].UpdateClusters();
                     else
                          AbilityClusters[CC].RefreshClusters();

                     //Logging.WriteVerbose("Ability Clusters Found {0}", AbilityClusters[CC].Count.ToString());
                     return AbilityClusters[CC].CurrentClusters;
            }
 public ClusterTargetCollection(ClusterConditions CC)
     : base(CC)
 {
 }
Exemple #4
0
 internal static bool CheckClusterConditions(ClusterConditions CC)
 {
     return Bot.Combat.Clusters(CC).Count>0;
 }