public static Square ToSquare(this SquareWithWall sqww) { return((Square)(sqww.ToInt() & 0x1f)); }
/// <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); }