| 247 | } |
| 248 | |
| 249 | int Agent::getTULimit(int reactionValue) const |
| 250 | { |
| 251 | if (reactionValue == 0) |
| 252 | { |
| 253 | return 0; |
| 254 | } |
| 255 | else if (reactionValue >= getReactionValue()) |
| 256 | { |
| 257 | return modified_stats.time_units; |
| 258 | } |
| 259 | else |
| 260 | { |
| 261 | return current_stats.time_units * reactionValue / modified_stats.reactions; |
| 262 | } |
| 263 | } |
| 264 | |
| 265 | UString Agent::getRankName() const |
| 266 | { |
no outgoing calls
no test coverage detected