93 : m_data(sourceSquare |
94 (targetSquare << 10) |
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;
bool operator==(const Move &other) const
Definition: move.h:107
bool isNull() const
Definition: move.h:102
Definition: boardscene.h:29
Move()
Definition: move.h:85
int sourceSquare() const
Definition: move.h:117
int promotion() const
Definition: move.h:127
int targetSquare() const
Definition: move.h:122
bool operator!=(const Move &other) const
Definition: move.h:112
A small and efficient chessmove class.
Definition: move.h:42