| 909 | } |
| 910 | |
| 911 | static int computeMaterialAmount(df::building *bld) |
| 912 | { |
| 913 | auto size = Buildings::getSize(bld).second; |
| 914 | int cnt = size.x * size.y; |
| 915 | |
| 916 | if (bld->room.extents && bld->isExtentShaped()) |
| 917 | cnt = Buildings::countExtentTiles(bld, cnt); |
| 918 | |
| 919 | return cnt/4 + 1; |
| 920 | } |
| 921 | |
| 922 | bool Buildings::setSize(df::building *bld, df::coord2d size, int direction) |
| 923 | { |
no outgoing calls
no test coverage detected