示例#1
0
        protected static int BlockNbrCounter = 0; // used for debugging

        #endregion Fields

        #region Constructors

        public GoBlockBase(GoBoard goBoard, Color blockColor)
        {
            Board = goBoard;
            BlockColor = blockColor;
            AdjacentBlocks = new GoBlocksAdjacentCollection(this);

            Members = new Region(Board.BoardSize);
            MemberList = new List<int>();

            BlockNbr = ++BlockNbrCounter;
        }
        public int BlockNbr;                                    // used for debugging

        public GoBlockBase(GoBoard goBoard, Color blockColor)
        {
            Board          = goBoard;
            BlockColor     = blockColor;
            AdjacentBlocks = new GoBlocksAdjacentCollection(this);

            Members    = new Region(Board.BoardSize);
            MemberList = new List <int>();

            BlockNbr = ++BlockNbrCounter;
        }