MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / begin

Method begin

game/ui/tileview/cityview.cpp:1617–1636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1615CityView::~CityView() = default;
1616
1617void CityView::begin()
1618{
1619 vanillaControls = !config().getBool("OpenApoc.NewFeature.OpenApocCityControls");
1620 CityTileView::begin();
1621 if (state->current_city.id == "CITYMAP_ALIEN")
1622 {
1623
1624 fw().jukebox->play(JukeBox::PlayList::Alien);
1625 }
1626 else
1627 {
1628 fw().jukebox->play(JukeBox::PlayList::City);
1629 }
1630 if (state->newGame)
1631 {
1632 state->newGame = false;
1633 baseForm->findControlTyped<Ticker>("NEWS_TICKER")
1634 ->addMessage(tr("Welcome to X-COM Apocalypse"));
1635 }
1636}
1637
1638void CityView::resume()
1639{

Callers 5

orderSelectMethod · 0.45
orderDisableWeaponMethod · 0.45
updateMethod · 0.45
updateSelectedUnitsMethod · 0.45

Calls 4

trFunction · 0.85
getBoolMethod · 0.80
addMessageMethod · 0.80
playMethod · 0.45

Tested by

no test coverage detected