/*******************CONSTRUCTORS*********************/ public Weapon() { itsName = " "; itsUsers = new characterList(); itsTargets = new characterList(); itsActions = new List<WeaponAction>(); itsChoosableActions = new WeaponAction[Globals.ACTION_LIMIT]; itsSubActions = new int[Globals.ACTION_LIMIT, Globals.ACTION_LIMIT]; itsModifiedSkills = new propertyList(); itsSkillModifiers = new Coefficient[Globals.SKILL_LIMIT]; initializeLists(); }
private void fillListBox(propertyList pi, object value) { if (this.lb.Items.Count == 0) { foreach (KeyValuePair<object, object> pair in pi.Values) { int num = this.lb.Items.Add(pair.Value); if (value == pair.Value) { this.lb.SelectedIndex = num; } } } }
private void setSelectedItem(propertyList pi, string path) { foreach (KeyValuePair<object, object> pair in pi.Values) { if (pair.Value == this.lb.SelectedItem) { ((propertyList) PropertyComboBox.s_htLists[path]).selectedValue = this.lb.SelectedItem; ((propertyList) PropertyComboBox.s_htLists[path]).selectedKey = pair.Key; } } }
public Attribute(string name) { initialize(name); itsSkills = new propertyList(); }
/****************CONSTRUCTORS*********************/ public Attribute() { initialize(); itsSkills = new propertyList(); }
private void initializeLists() { itsStats = new propertyList(); itsSkills = new propertyList(); itsAttributes = new propertyList(); itsTargets = new characterList(); itsWeapons = new Weapon[Globals.WEAPON_LIMIT]; for (int i = 0; i < Globals.WEAPON_LIMIT; i++) itsWeapons[i] = new Weapon(); }
private void initializeLists() { itsWeaponModifiers = new Weapon[Globals.WEAPON_LIMIT]; for (int i = 0; i < Globals.WEAPON_LIMIT; i++) itsWeaponModifiers[i] = new Weapon(); itsAtt_Coefficients = new coefficientList(); itsGoverningAttributes = new propertyList(); itsGoverningStats = new propertyList(); itsGov_Weapons = new Weapon[0]; }