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

Method getCost

src/Ruleset/RuleInventory.cpp:231–236  ·  view source on GitHub ↗

* Gets the time unit cost to place an item in another section. * @param slot The new section id. * @return The time unit cost. */

Source from the content-addressed store, hash-verified

229 * @return The time unit cost.
230 */
231int RuleInventory::getCost(RuleInventory* slot) const
232{
233 if (slot == this)
234 return 0;
235 return _costs.find(slot->getId())->second;
236}
237
238int RuleInventory::getListOrder() const
239{

Callers

nothing calls this directly

Calls 1

getIdMethod · 0.45

Tested by

no test coverage detected