Slide driven development
This commit is contained in:
parent
6923904c61
commit
be472fa4b3
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue