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