Example #1
0
        /// <summary>
        /// Create a new armor type with no resistances.
        /// </summary>
        /// <param name="st">
        /// The Max Strength <see cref="System.Int32"/>
        /// </param>
        /// <param name="th">
        /// The thickness <see cref="System.Byte"/>
        /// </param>
        public ArmorType(int st, byte th)
        {
            strength = st;
            thickness = th;
            strongResistances = new List<WarheadType.Types>();
            weakResistances = new List<WarheadType.Types>();

            protoType = new Armor(this);
        }
Example #2
0
 /// <summary>
 /// Copy ctor
 /// </summary>
 /// <param name="a">
 /// A <see cref="Armor"/>
 /// </param>
 public Armor(Armor a)
 {
     this.Type = (ArmorType)a.Type;
     strength = ((ArmorType)a.Type).Strength;
 }
Example #3
0
 /// <summary>
 /// Create a new armor type with resistances.
 /// </summary>
 /// <param name="st">
 /// The Max Strength <see cref="System.Int32"/>
 /// </param>
 /// <param name="th">
 /// The Thickness <see cref="System.Byte"/>
 /// </param>
 /// <param name="sr">
 /// Strong Resistances <see cref="List<WarheadType.Types>"/>
 /// </param>
 /// <param name="wr">
 /// WeakResistances <see cref="List<WarheadType.Types>"/>
 /// </param>
 public ArmorType(int st, byte th, List<WarheadType.Types> sr, List<WarheadType.Types> wr)
 {
     strength = st;
     thickness = th;
     strongResistances = new List<WarheadType.Types>(sr);
     weakResistances = new List<WarheadType.Types>(wr);
     protoType = new Armor(this);
     //		strongResistances.sort();
     //		weakResistances.sort();
 }
Example #4
0
 /// <summary>
 /// Copy ctor
 /// </summary>
 /// <param name="a">
 /// A <see cref="Armor"/>
 /// </param>
 public Armor(Armor a)
 {
     this.Type = (ArmorType)a.Type;
     strength  = ((ArmorType)a.Type).Strength;
 }