コード例 #1
0
 public static Square ToSquare(this SquareWithWall sqww)
 {
     return((Square)(sqww.ToInt() & 0x1f));
 }
コード例 #2
0
 /// <summary>
 /// 盤内か。壁(盤外)だとfalseになる。
 /// </summary>
 /// <param name="sqww"></param>
 /// <returns></returns>
 public static bool IsOk(this SquareWithWall sqww)
 {
     return((sqww.ToInt() & (int)SquareWithWall.SQWW_BORROW_MASK) == 0);
 }