コード例 #1
0
 public void Set(Position pos)
 {
     m_x = pos.m_x;
     m_y = pos.m_y;
 }
コード例 #2
0
 public Position(Position pos)
 {
     Set(pos);
 }
コード例 #3
0
 public bool Equals(Position pos)
 {
     return m_x == pos.m_x
         && m_y == pos.m_y;
 }
コード例 #4
0
        Position m_from;      // position to move from

        //Piece m_captured;

        public ChessMove(int r, int c, int _r, int _c)
        {
            m_from = new Position(r, c);
            m_to = new Position(_r, _c);
        }