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

Method executeOrders

game/ui/base/aliencontainmentscreen.cpp:135–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135void AlienContainmentScreen::executeOrders()
136{
137 int rightIdx = getRightIndex();
138
139 // AlienContainment: Simply apply
140 for (auto &c : transactionControls[Type::Aliens])
141 {
142 int i = 0;
143 for (auto &b : state->player_bases)
144 {
145 if (c->tradeState.shipmentsFrom(i) > 0)
146 {
147 b.second->inventoryBioEquipment[c->itemId] =
148 c->tradeState.getStock(i, rightIdx, true);
149 }
150 i++;
151 }
152 }
153}
154
155}; // namespace OpenApoc

Callers

nothing calls this directly

Calls 2

shipmentsFromMethod · 0.80
getStockMethod · 0.80

Tested by

no test coverage detected