* Check if the town is allowed to build roads. * @return true If the town is allowed to build roads. */
| 1503 | * @return true If the town is allowed to build roads. |
| 1504 | */ |
| 1505 | static inline bool TownAllowedToBuildRoads(TownExpandModes modes) |
| 1506 | { |
| 1507 | return modes.Test(TownExpandMode::Roads); |
| 1508 | } |
| 1509 | |
| 1510 | /* The possible states of town growth. */ |
| 1511 | enum class TownGrowthResult { |
no test coverage detected