* Get the foundation for a bridge. * @param tileh The slope to build the bridge on. * @param axis The axis of the bridge entrance. * @return The foundation required. */
| 113 | * @return The foundation required. |
| 114 | */ |
| 115 | Foundation GetBridgeFoundation(Slope tileh, Axis axis) |
| 116 | { |
| 117 | if (tileh == SLOPE_FLAT || |
| 118 | ((tileh == SLOPE_NE || tileh == SLOPE_SW) && axis == AXIS_X) || |
| 119 | ((tileh == SLOPE_NW || tileh == SLOPE_SE) && axis == AXIS_Y)) return FOUNDATION_NONE; |
| 120 | |
| 121 | return (HasSlopeHighestCorner(tileh) ? InclinedFoundation(axis) : FlatteningFoundation(tileh)); |
| 122 | } |
| 123 | |
| 124 | /** |
| 125 | * Determines if the track on a bridge ramp is flat or goes up/down. |
no test coverage detected