예제 #1
0
 public BoardState()
 {
     backgroundColor      = Color.White;
     gridColor            = Color.Black;
     gridPenWidth         = 1;
     activeHex            = null;
     activeHexBorderColor = Color.Blue;
     activeHexBorderWidth = 1;
 }
예제 #2
0
 public BoardState(Color backgroundColor, Color gridColor, int gridPenWidth, Color activeHexBorderColor, int activeHexBorderWidth)
 {
     this.backgroundColor      = backgroundColor;
     this.gridColor            = gridColor;
     this.gridPenWidth         = gridPenWidth;
     this.activeHex            = null;
     this.activeHexBorderColor = activeHexBorderColor;
     this.activeHexBorderWidth = activeHexBorderWidth;
 }
예제 #3
0
        public HexagonalMapState()
        {
            backgroundColor      = Color.White;
            gridColor            = Color.Black;
            gridPenWidth         = 1;
            activeHex            = null;
            activeHexBorderColor = Color.Blue;
            activeHexBorderWidth = 1;

            sets      = new List <HexSet>();
            obstacles = new HexSet(this);
            activeSet = null;
        }