1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:27:35 +00:00

Snake: Move geometry types into Geometry.h and add Direction enum

This commit is contained in:
Sam Atkins 2023-03-16 13:56:06 +00:00 committed by Andreas Kling
parent 3ce87ea5f9
commit da7c883dfa
3 changed files with 54 additions and 16 deletions

View file

@ -290,7 +290,7 @@ void Game::queue_velocity(int v, int h)
m_velocity_queue.enqueue({ v, h });
}
Game::Velocity const& Game::last_velocity() const
Velocity const& Game::last_velocity() const
{
if (!m_velocity_queue.is_empty())
return m_velocity_queue.last();