93 : m_data(sourceSquare |
94 (targetSquare << 10) |
97 Q_ASSERT(sourceSquare >= 0 && sourceSquare <= 0x3FF);
98 Q_ASSERT(targetSquare >= 0 && targetSquare <= 0x3FF);
99 Q_ASSERT(promotion >= 0 && promotion <= 0x3FF);
104 return (m_data == 0);
109 return (m_data == other.m_data);
114 return (m_data != other.m_data);
119 return m_data & 0x3FF;
124 return (m_data >> 10) & 0x3FF;
129 return (m_data >> 20) & 0x3FF;
int targetSquare() const
Definition: move.h:122
int sourceSquare() const
Definition: move.h:117
Definition: boardscene.h:29
bool operator!=(const Move &other) const
Definition: move.h:112
bool operator==(const Move &other) const
Definition: move.h:107
int promotion() const
Definition: move.h:127
Move()
Definition: move.h:85
A small and efficient chessmove class.
Definition: move.h:42
bool isNull() const
Definition: move.h:102