| 570 | } |
| 571 | |
| 572 | static const char * get_construction_str(df::building *b) { |
| 573 | df::building_constructionst *cons = |
| 574 | virtual_cast<df::building_constructionst>(b); |
| 575 | if (!cons) |
| 576 | return "~"; |
| 577 | |
| 578 | switch (cons->type) { |
| 579 | case construction_type::Fortification: return "CF"; |
| 580 | case construction_type::Wall: return "Cw"; |
| 581 | case construction_type::Floor: return "Cf"; |
| 582 | case construction_type::UpStair: return "Cu"; |
| 583 | case construction_type::DownStair: return "Cd"; |
| 584 | case construction_type::UpDownStair: return "Cx"; |
| 585 | case construction_type::Ramp: return "Cr"; |
| 586 | case construction_type::TrackN: return "trackN"; |
| 587 | case construction_type::TrackS: return "trackS"; |
| 588 | case construction_type::TrackE: return "trackE"; |
| 589 | case construction_type::TrackW: return "trackW"; |
| 590 | case construction_type::TrackNS: return "trackNS"; |
| 591 | case construction_type::TrackNE: return "trackNE"; |
| 592 | case construction_type::TrackNW: return "trackNW"; |
| 593 | case construction_type::TrackSE: return "trackSE"; |
| 594 | case construction_type::TrackSW: return "trackSW"; |
| 595 | case construction_type::TrackEW: return "trackEW"; |
| 596 | case construction_type::TrackNSE: return "trackNSE"; |
| 597 | case construction_type::TrackNSW: return "trackNSW"; |
| 598 | case construction_type::TrackNEW: return "trackNEW"; |
| 599 | case construction_type::TrackSEW: return "trackSEW"; |
| 600 | case construction_type::TrackNSEW: return "trackNSEW"; |
| 601 | case construction_type::TrackRampN: return "trackrampN"; |
| 602 | case construction_type::TrackRampS: return "trackrampS"; |
| 603 | case construction_type::TrackRampE: return "trackrampE"; |
| 604 | case construction_type::TrackRampW: return "trackrampW"; |
| 605 | case construction_type::TrackRampNS: return "trackrampNS"; |
| 606 | case construction_type::TrackRampNE: return "trackrampNE"; |
| 607 | case construction_type::TrackRampNW: return "trackrampNW"; |
| 608 | case construction_type::TrackRampSE: return "trackrampSE"; |
| 609 | case construction_type::TrackRampSW: return "trackrampSW"; |
| 610 | case construction_type::TrackRampEW: return "trackrampEW"; |
| 611 | case construction_type::TrackRampNSE: return "trackrampNSE"; |
| 612 | case construction_type::TrackRampNSW: return "trackrampNSW"; |
| 613 | case construction_type::TrackRampNEW: return "trackrampNEW"; |
| 614 | case construction_type::TrackRampSEW: return "trackrampSEW"; |
| 615 | case construction_type::TrackRampNSEW: return "trackrampNSEW"; |
| 616 | case construction_type::ReinforcedWall: return "CW"; |
| 617 | case construction_type::NONE: |
| 618 | default: |
| 619 | return "~"; |
| 620 | } |
| 621 | } |
| 622 | |
| 623 | static const char * get_constructed_track_str(df::tiletype *tt, |
| 624 | const char * base) { |
no outgoing calls
no test coverage detected