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

Method getPriceDelta

game/ui/general/transactioncontrol.cpp:718–726  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

716}
717
718int TransactionControl::getPriceDelta() const
719{
720 int delta = 0;
721 for (int i = 0; i < 8; i++)
722 {
723 delta += tradeState.shipmentsTotal(i) * price;
724 }
725 return delta;
726}
727
728void TransactionControl::onRender()
729{

Callers 1

updateFormValuesMethod · 0.80

Calls 1

shipmentsTotalMethod · 0.80

Tested by

no test coverage detected