Ejemplo n.º 1
0
        /**
         * Get the height ('z') of a bridge.
         * @param tile the bridge ramp tile to get the bridge height from
         * @return the height of the bridge.
         */
        int GetBridgeHeight(TileIndex t)
        {
            int        h;
            Slope      tileh = TileMap.GetTileSlope(t, ref h);
            Foundation f     = GetBridgeFoundation(tileh, DiagDirToAxis(GetTunnelBridgeDirection(t)));

            /* one height level extra for the ramp */
            return(h + 1 + ApplyFoundationToSlope(f, ref tileh));
        }