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