示例#1
0
 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;
 }
示例#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;
            }
示例#3
0
 public ClusterTargetCollection(ClusterConditions CC)
     : base(CC)
 {
 }
示例#4
0
 internal static bool CheckClusterConditions(ClusterConditions CC)
 {
     return Bot.Combat.Clusters(CC).Count>0;
 }