| 198 | } |
| 199 | |
| 200 | inline bool TFork::PrevDirection() { |
| 201 | if (CurrentDirection == TDirection(0)) { |
| 202 | return false; |
| 203 | } |
| 204 | do { |
| 205 | --CurrentDirection; |
| 206 | } while (CurrentDirection > 0 && !HasDirection(CurrentDirection)); |
| 207 | return HasDirection(CurrentDirection); |
| 208 | } |
| 209 | |
| 210 | void TFork::LastDirection() { |
| 211 | CurrentDirection = D_MAX; |