예제 #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);
        }
예제 #2
0
파일: Armor.cs 프로젝트: rdgoetz/LessThanOk
 /// <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;
 }
예제 #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();
 }
예제 #4
0
파일: Armor.cs 프로젝트: rdgoetz/LessThanOk
 /// <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;
 }