Example #1
0
 public RNGInfo(UInt32 rawRng, StealResult steal, StealResult stealWithCuffs, ChestResult chestResult1, ChestResult chestResult2)
 {
     RawRNG         = rawRng;
     StealNormal    = steal;
     StealWithCuffs = stealWithCuffs;
     Chest1         = new ChestResult();
     Chest2         = new ChestResult();
 }
Example #2
0
        private void CheckBoxStealCuffs_CheckedChanged(object sender, EventArgs e)
        {
            DesiredStealCuff = new StealResult(
                checkBoxRare.Checked,
                checkBoxUncommon.Checked,
                checkBoxCommon.Checked);

            //Redraw DGV
            dataGridViewDisp.InvalidateColumn(dataGridViewDisp.Columns["ColumnStealCuffs"].Index);
            //Update Future
            DesiredStealCuffFuture.DesiredResult = DesiredStealCuff;
            UpdateStealFutures();
        }
Example #3
0
 /// <summary>
 /// Returns true if this steal result is same or better than the provided one.
 /// </summary>
 /// <param name="other">Steal Result to compare against.</param>
 /// <returns>Bool representing the comparison is same or better.</returns>
 public bool SameOrBetter(StealResult other)
 {
     if (other.RareItem && !this.RareItem)
     {
         return(false);
     }
     if (other.UncommonItem && !this.UncommonItem)
     {
         return(false);
     }
     if (other.CommonItem && !this.CommonItem)
     {
         return(false);
     }
     return(true);
 }
Example #4
0
        private void RadioButtonSteal_CheckedChanged(object sender, EventArgs e)
        {
            var RadioButton = sender as RadioButton;

            switch (RadioButton.Text)
            {
            case "Common":
                DesiredStealNormal = new StealResult(false, false, true);
                break;

            case "Uncommon":
                DesiredStealNormal = new StealResult(false, true, false);
                break;

            case "Rare":
                DesiredStealNormal = new StealResult(true, false, false);
                break;
            }
            //Redraw DGV
            dataGridViewDisp.InvalidateColumn(dataGridViewDisp.Columns["ColumnSteal"].Index);
            //Update Future
            DesiredStealNormalFuture.DesiredResult = DesiredStealNormal;
            UpdateStealFutures();
        }
Example #5
0
 public StealFuture(StealResult desiredSteal, bool cuffs, int searchDepth)
 {
     this.DesiredResult = desiredSteal;
     this.SearchDepth   = searchDepth;
     this.Cuffs         = cuffs;
 }
Example #6
0
 public StealResult(StealResult inResult)
 {
     RareItem     = inResult.RareItem;
     UncommonItem = inResult.UncommonItem;
     CommonItem   = inResult.CommonItem;
 }
Example #7
0
 public bool Same(StealResult other)
 {
     return(this.Equals(other));
 }