Пример #1
0
        /*******************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();
        }
Пример #2
0
 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;
             }
         }
     }
 }
Пример #3
0
 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;
         }
     }
 }
Пример #4
0
 public Attribute(string name)
 {
     initialize(name);
     itsSkills = new propertyList();
 }
Пример #5
0
 /****************CONSTRUCTORS*********************/
 public Attribute()
 {
     initialize();
     itsSkills = new propertyList();
 }
Пример #6
0
 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();
 }
Пример #7
0
        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];
        }