Slide driven development

This commit is contained in:
Corentin Jabot 2021-10-06 13:38:24 +02:00
parent 6923904c61
commit be472fa4b3
1 changed files with 4 additions and 4 deletions

View File

@ -12,14 +12,14 @@ public:
bool enableAI = false;
Direction direction() const {
if (left)
return Direction::LEFT;
if (right)
return Direction::RIGHT;
if (up)
return Direction::UP;
if (down)
return Direction::DOWN;
if (left)
return Direction::LEFT;
if (right)
return Direction::RIGHT;
return Direction::NONE;
}
};