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

Method clear

MicropolisCore/src/MicropolisEngine/src/tool.cpp:95–105  ·  view source on GitHub ↗

Reset all effects. */

Source from the content-addressed store, hash-verified

93
94/** Reset all effects. */
95void ToolEffects::clear()
96{
97 this->cost = 0;
98 this->modifications.clear();
99
100 /* free all frontend messages */
101 while(!this->frontendMessages.empty()) {
102 delete this->frontendMessages.back();
103 this->frontendMessages.pop_back();
104 }
105}
106
107/**
108 * Perform the effects stored in the object to the simulator world.

Callers 15

ToolEffectsMethod · 0.95
modifyWorldMethod · 0.95
clearCensusMethod · 0.45
checkPowerMapMethod · 0.45
evalInitMethod · 0.45
doProblemsMethod · 0.45
tryDriveMethod · 0.45
doBlinkMethod · 0.45
domReadyFunction · 0.45
cFunction · 0.45
all.jsFile · 0.45
domReadyFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected