コード例 #1
0
 public PuzzlePiecePosition(PuzzlePiece piece, Point position)
 {
     this.Piece = piece;
     this.Position = position;
 }
コード例 #2
0
 public PuzzlePiecePosition(PuzzlePiece piece)
     : this(piece, new Point(0,0,0))
 {
 }
コード例 #3
0
 public PuzzleMove(PuzzleState startingState, PuzzlePiece movingPiece, Point direction)
     : this(startingState, new[] { movingPiece }, direction)
 {
 }
コード例 #4
0
 public PuzzlePiecePosition GetPiecePosition(PuzzlePiece piece)
 {
     return Pieces.Single(p => p.Piece == piece);
 }
コード例 #5
0
 public PuzzleMove(PuzzleState startingState, PuzzlePiece movingPiece, Point direction, bool isRemoval)
     : this(startingState, movingPiece, direction)
 {
     this.IsRemoval = isRemoval;
 }