示例#1
0
 //写构造函数
 public PlayerZD(TankFather tf, int speed, int life, int power) : base(tf, speed, life, power, img)
 {
 }
示例#2
0
        /// <summary>
        /// 4.构造函数
        /// </summary>
        /// <param name="tf"></param>
        /// <param name="?"></param>
        public ZiDanFather(TankFather tf, int speed, int life, int power, Image img) : base(tf.X + tf.Width / 2 - 6, tf.Y + tf.Height / 2 - 6, img.Width, img.Height, speed, life, tf.Dir)

        {
            this.img = img;
        }