Slide driven development

This commit is contained in:
Corentin Jabot 2021-10-06 13:38:24 +02:00
parent 6923904c61
commit be472fa4b3

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;
}
};