public RNGInfo(UInt32 rawRng, StealResult steal, StealResult stealWithCuffs, ChestResult chestResult1, ChestResult chestResult2) { RawRNG = rawRng; StealNormal = steal; StealWithCuffs = stealWithCuffs; Chest1 = new ChestResult(); Chest2 = new ChestResult(); }
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(); }
/// <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); }
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(); }
public StealFuture(StealResult desiredSteal, bool cuffs, int searchDepth) { this.DesiredResult = desiredSteal; this.SearchDepth = searchDepth; this.Cuffs = cuffs; }
public StealResult(StealResult inResult) { RareItem = inResult.RareItem; UncommonItem = inResult.UncommonItem; CommonItem = inResult.CommonItem; }
public bool Same(StealResult other) { return(this.Equals(other)); }