equal
deleted
inserted
replaced
113 { |
113 { |
114 return (RoadBits)(ROAD_NW << (3 ^ d)); |
114 return (RoadBits)(ROAD_NW << (3 ^ d)); |
115 } |
115 } |
116 |
116 |
117 /** |
117 /** |
|
118 * Create the road-part which belongs to the given Axis |
|
119 * |
|
120 * This function returns a RoadBits value which belongs to |
|
121 * the given Axis. |
|
122 * |
|
123 * @param a The Axis |
|
124 * @return The result RoadBits which the selected road-part set |
|
125 */ |
|
126 static inline RoadBits AxisToRoadBits(Axis a) |
|
127 { |
|
128 return a == AXIS_X ? ROAD_X : ROAD_Y; |
|
129 } |
|
130 |
|
131 /** |
118 * Finds out, whether given player has all given RoadTypes available |
132 * Finds out, whether given player has all given RoadTypes available |
119 * @param PlayerID ID of player |
133 * @param PlayerID ID of player |
120 * @param rts RoadTypes to test |
134 * @param rts RoadTypes to test |
121 * @return true if player has all requested RoadTypes available |
135 * @return true if player has all requested RoadTypes available |
122 */ |
136 */ |