92 : m_data(sourceSquare |
93 (targetSquare << 10) |
103 return (m_data == 0);
108 return (m_data == other.m_data);
113 return (m_data != other.m_data);
118 return m_data & 0x3FF;
123 return (m_data >> 10) & 0x3FF;
128 return (m_data >> 20) & 0x3FF;
bool operator==(const Move &other) const
Definition: move.h:106
bool isNull() const
Definition: move.h:101
Definition: boardscene.h:28
Move()
Definition: move.h:84
int sourceSquare() const
Definition: move.h:116
int promotion() const
Definition: move.h:126
int targetSquare() const
Definition: move.h:121
bool operator!=(const Move &other) const
Definition: move.h:111
A small and efficient chessmove class.
Definition: move.h:41