| 191 | } |
| 192 | |
| 193 | inline bool TFork::NextDirection() { |
| 194 | do { |
| 195 | ++CurrentDirection; |
| 196 | } while (CurrentDirection < D_MAX && !HasDirection(CurrentDirection)); |
| 197 | return CurrentDirection < D_MAX; |
| 198 | } |
| 199 | |
| 200 | inline bool TFork::PrevDirection() { |
| 201 | if (CurrentDirection == TDirection(0)) { |