Пример #1
0
 /// <summary>
 /// Default constructor
 /// </summary>
 public SquareModel(int index)
 {
     Index = index;
     Piece = new GamePieceModel();
     Shape = Regionshapes.Undefined;
 }
Пример #2
0
 /// <summary>
 /// Adds a piece at the specified index
 /// </summary>
 /// <param name="index">The index on the gameboard</param>
 /// <param name="piece">The piece to add</param>
 public void AddPiece(int index, GamePieceModel piece)
 {
     Squares[index].Piece = piece;
 }