MCPcopy Create free account
hub / github.com/SimHacker/micropolis / addCost

Method addCost

MicropolisCore/src/MicropolisEngine/src/tool.h:180–184  ·  view source on GitHub ↗

* Add some amount to the total. */

Source from the content-addressed store, hash-verified

178 * Add some amount to the total.
179 */
180inline void ToolEffects::addCost(int amount)
181{
182 assert(amount >= 0); // To be on the safe side.
183 this->cost += amount;
184}
185
186/**
187 * Get the value of a map position.

Callers 13

connectTileMethod · 0.80
layDozeMethod · 0.80
layRoadMethod · 0.80
layRailMethod · 0.80
layWireMethod · 0.80
putDownParkMethod · 0.80
putDownNetworkMethod · 0.80
putDownWaterMethod · 0.80
putDownLandMethod · 0.80
putDownForestMethod · 0.80
prepareBuildingSiteMethod · 0.80
buildBuildingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected