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;
|
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;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue