* Increase the soldier's military rank. */
| 293 | * Increase the soldier's military rank. |
| 294 | */ |
| 295 | void Soldier::promoteRank() |
| 296 | { |
| 297 | _rank = (SoldierRank)((int)_rank + 1); |
| 298 | if (_rank > RANK_SQUADDIE) |
| 299 | { |
| 300 | // only promotions above SQUADDIE are worth to be mentioned |
| 301 | _recentlyPromoted = true; |
| 302 | } |
| 303 | } |
| 304 | |
| 305 | /** |
| 306 | * Returns the soldier's amount of missions. |
no outgoing calls
no test coverage detected