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; bool enableAI = false;
Direction direction() const { Direction direction() const {
if (left)
return Direction::LEFT;
if (right)
return Direction::RIGHT;
if (up) if (up)
return Direction::UP; return Direction::UP;
if (down) if (down)
return Direction::DOWN; return Direction::DOWN;
if (left)
return Direction::LEFT;
if (right)
return Direction::RIGHT;
return Direction::NONE; return Direction::NONE;
} }
}; };