Reset all effects. */
| 93 | |
| 94 | /** Reset all effects. */ |
| 95 | void 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. |
no outgoing calls
no test coverage detected