示例#1
0
        /// <summary>
        /// Create a new WarheadType with splash damage.
        /// </summary>
        /// <param name="dam">
        /// One-time damage <see cref="System.Byte"/>
        /// </param>
        /// <param name="siz">
        /// size <see cref="System.Byte"/>
        /// </param>
        /// <param name="splshd">
        /// splash damage <see cref="System.Byte"/>
        /// </param>
        /// <param name="splshrd">
        /// splash radius <see cref="System.Byte"/>
        /// </param>
        /// <param name="t">
        /// primary type <see cref="Types"/>
        /// </param>
        public WarheadType(byte dam, byte siz, byte splshd, byte splshrd, Types t)
        {
            damage    = dam;
            size      = siz;
            splashDam = splshd;
            splashRad = splshrd;
            primary   = t;

            protoType = new Warhead(this);
        }
示例#2
0
        /// <summary>
        /// Create a new warheadType
        /// </summary>
        /// <param name="dam">
        /// Damage <see cref="System.Byte"/>
        /// </param>
        /// <param name="siz">
        /// size <see cref="System.Byte"/>
        /// </param>
        /// <param name="t">
        /// primary type <see cref="Types"/>
        /// </param>
        /// <param name="t2">
        /// secondary type <see cref="Types"/>
        /// </param>
        public WarheadType(byte dam, byte siz, Types t, Types t2)
        {
            damage = dam;
            size = siz;
            splashDam = 0;
            splashRad = 0;
            primary = t;
            secondary = t2;

            protoType = new Warhead(this);
        }
示例#3
0
        /// <summary>
        /// Create a new warheadType
        /// </summary>
        /// <param name="dam">
        /// Damage <see cref="System.Byte"/>
        /// </param>
        /// <param name="siz">
        /// size <see cref="System.Byte"/>
        /// </param>
        /// <param name="t">
        /// primary type <see cref="Types"/>
        /// </param>
        /// <param name="t2">
        /// secondary type <see cref="Types"/>
        /// </param>
        public WarheadType(byte dam, byte siz, Types t, Types t2)
        {
            damage    = dam;
            size      = siz;
            splashDam = 0;
            splashRad = 0;
            primary   = t;
            secondary = t2;

            protoType = new Warhead(this);
        }
示例#4
0
        /// <summary>
        /// Create a new WarheadType with splash damage.
        /// </summary>
        /// <param name="dam">
        /// One-time damage <see cref="System.Byte"/>
        /// </param>
        /// <param name="siz">
        /// size <see cref="System.Byte"/>
        /// </param>
        /// <param name="splshd">
        /// splash damage <see cref="System.Byte"/>
        /// </param>
        /// <param name="splshrd">
        /// splash radius <see cref="System.Byte"/>
        /// </param>
        /// <param name="t">
        /// primary type <see cref="Types"/>
        /// </param>
        public WarheadType(byte dam, byte siz, byte splshd, byte splshrd, Types t)
        {
            damage = dam;
            size = siz;
            splashDam = splshd;
            splashRad = splshrd;
            primary = t;

            protoType = new Warhead(this);
        }
示例#5
0
 /// <summary>
 /// Copy ctor
 /// </summary>
 /// <param name="w">
 /// A <see cref="Warhead"/>
 /// </param>
 public Warhead(Warhead w)
     : base()
 {
     init();
     this.Type = w.Type;
 }
示例#6
0
 /// <summary>
 /// Apply damage to this armor. The armor takes some damage
 /// and also mitigates the damage done.
 /// </summary>
 /// <param name="w">
 /// A <see cref="Warhead"/>
 /// </param>
 /// <returns>
 /// The amount of damage not absorbed by the armor. <see cref="System.Byte"/>
 /// </returns>
 public byte applyDamage(Warhead w)
 {
     return ((WarheadType)w.Type).Damage;
 }
示例#7
0
 /// <summary>
 /// Apply damage to this armor. The armor takes some damage
 /// and also mitigates the damage done.
 /// </summary>
 /// <param name="w">
 /// A <see cref="Warhead"/>
 /// </param>
 /// <returns>
 /// The amount of damage not absorbed by the armor. <see cref="System.Byte"/>
 /// </returns>
 public byte applyDamage(Warhead w)
 {
     return(((WarheadType)w.Type).Damage);
 }
示例#8
0
 /// <summary>
 /// Copy ctor
 /// </summary>
 /// <param name="w">
 /// A <see cref="Warhead"/>
 /// </param>
 public Warhead(Warhead w)
     : base()
 {
     init();
     this.Type = w.Type;
 }