* Checks if a given Track is diagonal * * @param track The given track to check * @return true if diagonal, else false */
| 617 | * @return true if diagonal, else false |
| 618 | */ |
| 619 | inline bool IsDiagonalTrack(Track track) |
| 620 | { |
| 621 | assert(IsValidTrack(track)); |
| 622 | return (track == TRACK_X) || (track == TRACK_Y); |
| 623 | } |
| 624 | |
| 625 | /** |
| 626 | * Checks if a given Trackdir is diagonal. |
no test coverage detected