Exemplo n.º 1
0
        /*
         * public bool IsDead
         * {
         *  get { return _isDead; }
         *  set { _isDead = value; }
         * }
         */
        #endregion

        #region Constructor
        /// <summary>
        /// Create a Player [Designated constructor]
        /// </summary>
        /// <param name="name">Name of the player</param>
        /// <param name="cannon">Represent the canon of the player</param>
        public BG_Player(string name, BG_Cannon cannon)
        {
            //this.Cannon = new BG_Cannon();
            this.History   = new List <BG_Hit>();
            this.Name      = name;
            this.IsPlaying = false;
            this.Cannon    = cannon;
        }
Exemplo n.º 2
0
 // Designated constructor
 public BG_Hit(BG_Location location, BG_Cannon cannon)
 {
     this.Location = location;
     this.Cannon   = cannon;
 }