| 76 | POINT direction(Direction dir) const noexcept { return static_cast<int>(dir) * right(); } |
| 77 | |
| 78 | void turnBack() noexcept { d = back(); } |
| 79 | void turnLeft() noexcept { d = left(); } |
| 80 | void turnRight() noexcept { d = right(); } |
| 81 | void turn(Direction dir) noexcept { d = direction(dir); } |