예제 #1
0
파일: Piece.cs 프로젝트: seuribe/demondrian
 public Piece(PieceType type, int size)
 {
     System.Diagnostics.Debug.Assert(type != null, "type cannot be null in piece!");
     this.type = type;
     this.size = size;
 }
예제 #2
0
 public bool Matches(PieceType other)
 {
     return((this != MatchNone && other != MatchNone) &&
            ((this == MatchAll || other == MatchAll) || (index == other.index)));
 }