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

Method orderMove

game/ui/tileview/cityview.cpp:574–597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

572}
573
574void CityView::orderMove(Vec3<float> position, bool alternative, bool portal)
575{
576 bool useTeleporter =
577 alternative && config().getBool("OpenApoc.NewFeature.AllowManualCityTeleporters");
578 if (activeTab == uiTabs[1])
579 {
580 if (portal)
581 {
582 for (auto &v : this->state->current_city->cityViewSelectedVehicles)
583 {
584 if (v && v->owner == this->state->getPlayer())
585 {
586 v->setMission(*state, VehicleMission::gotoPortal(*state, *v, position));
587 }
588 }
589 }
590 else
591 {
592 state->current_city->groupMove(*state, state->current_city->cityViewSelectedVehicles,
593 position, useTeleporter);
594 }
595 return;
596 }
597}
598
599void CityView::orderMove(StateRef<Building> building, bool alternative)
600{

Callers

nothing calls this directly

Calls 4

getBoolMethod · 0.80
getPlayerMethod · 0.80
groupMoveMethod · 0.80
setMissionMethod · 0.45

Tested by

no test coverage detected