MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / getRankInt

Method getRankInt

src/Savegame/BattleUnit.cpp:2503–2506  ·  view source on GitHub ↗

* Return the numeric version of the unit's rank. * @return unit rank, 0 = lowest */

Source from the content-addressed store, hash-verified

2501 * @return unit rank, 0 = lowest
2502 */
2503int BattleUnit::getRankInt() const
2504{
2505 return _rankInt;
2506}
2507
2508/**
2509 * Derive the numeric unit rank from the string rank

Callers 3

getPatrolNodeMethod · 0.80
getHighestRankedXComMethod · 0.80
getMoraleModifierMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected