| 294 | } |
| 295 | |
| 296 | static const char * get_tile_dig_designation(const df::coord &pos, const df::tile_dig_designation &tdd) { |
| 297 | switch (tdd) { |
| 298 | case df::tile_dig_designation::Default: |
| 299 | if (auto tt = Maps::getTileType(pos)) |
| 300 | return get_tile_dig_default(pos, tt); |
| 301 | return NULL; |
| 302 | case df::tile_dig_designation::UpDownStair: |
| 303 | return "i"; |
| 304 | case df::tile_dig_designation::Channel: |
| 305 | return "h"; |
| 306 | case df::tile_dig_designation::Ramp: |
| 307 | return "r"; |
| 308 | case df::tile_dig_designation::DownStair: |
| 309 | if (auto tt = Maps::getTileType(pos)) |
| 310 | if (tileShape(*tt) == tiletype_shape::STAIR_UP) |
| 311 | return "i"; |
| 312 | return "j"; |
| 313 | case df::tile_dig_designation::UpStair: |
| 314 | return "u"; |
| 315 | default: |
| 316 | return NULL; |
| 317 | } |
| 318 | } |
| 319 | |
| 320 | static const char * get_tile_dig_job(df::tile_designation *td, df::job *job) { |
| 321 | switch (job->job_type) { |
no test coverage detected