예제 #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="p_x">X-coordinate of the cell in the BattleField</param>
        /// <param name="p_y">Y-coordinate of the cell in the BattleField</param>
        /// <param name="p_BattleField">The BattleField which contains this cell.</param>
        public Cell(int p_x, int p_y, BattleField p_BattleField)
        {
            x = p_x;
            y = p_y;

            ParentBattleField = p_BattleField;

            Style = CellStyle.Empty;

            if (p_BattleField is EnemyBattleField)
            {
                IsInvisible = true;
            }
        }
 public BattleFieldViewModel(BattleField p_BattleField)
 {
     _BattleField = p_BattleField;
     FillDisplayedCells();
 }