MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / getQuantity

Method getQuantity

src/Savegame/Transfer.cpp:238–253  ·  view source on GitHub ↗

* Returns the quantity of items in the transfer. * @return Amount of items. */

Source from the content-addressed store, hash-verified

236 * @return Amount of items.
237 */
238int Transfer::getQuantity() const
239{
240 if (_itemQty != 0)
241 {
242 return _itemQty;
243 }
244 else if (_scientists != 0)
245 {
246 return _scientists;
247 }
248 else if (_engineers != 0)
249 {
250 return _engineers;
251 }
252 return 1;
253}
254
255/**
256 * Returns the type of the contents of the transfer.

Callers 7

getTotalSoldiersMethod · 0.45
getTotalScientistsMethod · 0.45
getTotalEngineersMethod · 0.45
getUsedStoresMethod · 0.45
getUsedHangarsMethod · 0.45
getUsedContainmentMethod · 0.45
ItemsArrivingStateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected