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

Method zoomLastEvent

game/ui/tileview/cityview.cpp:4121–4131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4119}
4120
4121void CityView::zoomLastEvent()
4122{
4123 if (!state->messages.empty())
4124 {
4125 auto message = state->messages.back();
4126 if (message.location != EventMessage::NO_LOCATION)
4127 {
4128 setScreenCenterTile(message.location);
4129 }
4130 }
4131}
4132void CityView::setSelectionState(CitySelectionState selectionState)
4133{
4134 this->selectionState = selectionState;

Callers 2

CityViewMethod · 0.95
NotificationScreenMethod · 0.45

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected