예제 #1
0
        private void RadioButtonDR2_CheckedChanged(object sender, EventArgs e)
        {
            var CheckButton = sender as RadioButton;

            if (CheckButton.Checked)
            {
                if (CheckButton == radioButtonDR2Item1)
                {
                    DesiredChest2 = new ChestResult(ChestResultType.Item1);
                }
                else if (CheckButton == radioButtonDR2Item2)
                {
                    DesiredChest2 = new ChestResult(ChestResultType.Item2);
                }
                else if (CheckButton == radioButtonDR2Gil)
                {
                    DesiredChest2 = new ChestResult(ChestResultType.Gil);
                }

                //Redraw DGV
                dataGridViewDisp.InvalidateColumn(dataGridViewDisp.Columns["ColumnChest2"].Index);

                DesiredChestFuture2.DesiredResult = DesiredChest2;
                UpdateChestFutures();
            }
        }
예제 #2
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();
 }
예제 #3
0
 /// <summary>
 /// Returns true if Result contents are same or if this has more gil than other. False otherwise.
 /// </summary>
 public bool SameOrBetter(ChestResult other)
 {
     if (this.HasItem1 && other.HasItem1)
     {
         return(true);
     }
     else if (this.HasItem2 && other.HasItem2)
     {
         return(true);
     }
     else if (this.HasGil && other.HasGil)
     {
         return(this.GilAmount >= other.GilAmount);
     }
     else
     {
         return(false);
     }
 }
예제 #4
0
 public bool Same(ChestResult other)
 {
     return(this.Equals(other));
 }
예제 #5
0
 public ChestFuture(ChestResult desiredResult, Chest chestInfo, int searchDepth)
 {
     DesiredResult = desiredResult;
     Chest         = chestInfo;
     SearchDepth   = searchDepth;
 }