| 460 | } |
| 461 | |
| 462 | bool CityView::handleClickedOrganisation(StateRef<Organisation> organisation, bool rightClick, |
| 463 | CitySelectionState selState [[maybe_unused]]) |
| 464 | { |
| 465 | if (rightClick) |
| 466 | { |
| 467 | tryOpenUfopaediaEntry(organisation->ufopaedia_entry); |
| 468 | return true; |
| 469 | } |
| 470 | else |
| 471 | { |
| 472 | if (state->current_city->cityViewSelectedOrganisation == organisation) |
| 473 | { |
| 474 | if (++organisation->lastClickedBuilding >= organisation->buildings.size()) |
| 475 | { |
| 476 | organisation->lastClickedBuilding = 0; |
| 477 | } |
| 478 | this->setScreenCenterTile( |
| 479 | organisation->buildings[organisation->lastClickedBuilding]->crewQuarters); |
| 480 | } |
| 481 | else |
| 482 | { |
| 483 | state->current_city->cityViewSelectedOrganisation = organisation; |
| 484 | } |
| 485 | } |
| 486 | return true; |
| 487 | } |
| 488 | |
| 489 | void CityView::showDailyReport() |
| 490 | { |
nothing calls this directly
no test coverage detected