mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +00:00
Snake: Clear the movement queue on game reset.
This commit is contained in:
parent
b41e95b578
commit
09c087177c
2 changed files with 7 additions and 0 deletions
|
@ -14,6 +14,12 @@ public:
|
|||
m_elements[i] = T();
|
||||
}
|
||||
|
||||
void clear()
|
||||
{
|
||||
m_head = 0;
|
||||
m_size = 0;
|
||||
}
|
||||
|
||||
bool is_empty() const { return !m_size; }
|
||||
int size() const { return m_size; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue