public Conversation_Box(Patricians Family, TheCast cast) { InitializeComponent(); family = Family; the_cast = cast; }
public bool Contains(Patricians p1) { if (p1 == patrician2 | p1 == patrician1) { return true; } else return false; }
public bool Any(Patricians p1, Patricians p2) { if ((p1 == patrician1 | p1 == patrician2) & (p2 == patrician1 | p2 == patrician2)) { return true; } else return false; }
public LoanRequest(Patricians fam, TheCast cast, TheState state) { family = fam; the_cast = cast; the_state = state; InitializeComponent(); moneyRadioGroup.SelectedIndex = 0; promiseRadioGroup.SelectedIndex = 0; }
public Patricians GetOther(Patricians p1) { if (p1 == patrician2) { return patrician1; } if (p1 == patrician1) { return patrician2; } else throw new Exception("That patrician isn't in list"); }
public PatricianInteract(Patricians Family, TheCast the_cast, TheState state) { family = Family; InitializeComponent(); PatricianNamelabel.Text = family.name.family_name_string; feelingLabel.Text = ""; feelingLabel.AutoSize = true; cast = the_cast; the_state = state; this.Text = family.name.family_name_string + "'s Estate"; PlayerPerception(); }
public Promise_Interaction(Patricians family, TheCast cast, TheState state) { this_family = family; the_cast = cast; the_state = state; InitializeComponent(); var mm = Mechanics.EnumToList(); for(int i = 1; i < mm.Count; i++) { if (i != this_family.name.family_id) { radioGroup2.Properties.Items.Add(new RadioGroupItem(i, mm[i])); } } radioGroup2.Properties.EndUpdate(); radioGroup2.SelectedIndex = 0; }
private void InitiatePatricians() { //create the cornelias Patricians Cornelia1 = new Patricians(new FamilyName(FamilyNames.Cornelius), everythingRandom); Corneliawealthlabel.Text = Mechanics.FormatSesterces(Cornelia1.wealth); the_cast.the_patricians.Add(Cornelia1); interactCorneliaButton.Enabled = true; corneliaPanel.Visible = false; corneliaPicture.BorderStyle = BorderStyle.None; corneliaTextBox.Text = ViewedText.cornelia_description(); //create the Marius var Marius1 = new Patricians(new FamilyName(FamilyNames.Marius), everythingRandom); mariusWealthLabel.Text = Mechanics.FormatSesterces(Marius1.wealth); the_cast.the_patricians.Add(Marius1); button3.Enabled = true; mariusPanel.Visible = false; mariuspictureBox.BorderStyle = BorderStyle.None; mariusTextBox.Text = ViewedText.marius_description(); //create the Julias var Julia = new Patricians(new FamilyName(FamilyNames.Julia), everythingRandom); pat3label.Text = Mechanics.FormatSesterces(Julia.wealth); the_cast.the_patricians.Add(Julia); pat3button.Enabled = true; juliaPanel.Visible = false; juliaPictureBox.BorderStyle = BorderStyle.None; juliaTextBox.Text = ViewedText.julia_description(); //create the Atilias var Atilia = new Patricians(new FamilyName(FamilyNames.Atilia), everythingRandom); pat4label.Text = Mechanics.FormatSesterces(Atilia.wealth); the_cast.the_patricians.Add(Atilia); pat4button.Enabled = true; atiliaPanel.Visible = false; atiliaPictureBox.BorderStyle = BorderStyle.None; atiliaTextBox.Text = ViewedText.atilia_description(); //now build relationship it is one less than real //the_cast.the_patricians.FindLast(x=>x.name.family_name_enum == FamilyNames.Cornelius).relationship[2] = the_cast.the_patricians.FindLast(x=>x.name.family_name_enum == FamilyNames.Marius).relationship[1]; foreach (var pat in the_cast.the_patricians) { foreach (var pat2 in the_cast.the_patricians) { if(pat != pat2) { if(!the_cast.the_relationships.Any(x => x.Key.Any(pat,pat2))) { the_cast.the_relationships.Add(new PatricianPair(pat, pat2), new Relationships(everythingRandom.Next(-25, 25))); } } } } }
public PatricianPair(Patricians p1, Patricians p2) { patrician1 = p1; patrician2 = p2; }