Ejemplo n.º 1
0
 /// <summary>
 /// Copy ctor
 /// </summary>
 /// <param name="p">
 /// A <see cref="Projectile"/>
 /// </param>
 public Projectile(Projectile p)
 {
     init();
     type = p.Type;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Make a projectile type.
        /// </summary>
        /// <param name="h">
        /// Homing? <see cref="System.Boolean"/>
        /// </param>
        /// <param name="a">
        /// Accel <see cref="System.Single"/>
        /// </param>
        /// <param name="s">
        /// Inital speed. <see cref="System.Single"/>
        /// </param>
        /// <param name="c">
        /// Arc height. <see cref="System.Single"/>
        /// </param>
        public ProjectileType(bool h, float a, float s, float c)
        {
            homing = h;
            accel = a;
            startSpeed = s;
            arc = c;

            protoType = new Projectile(this);
        }