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

Method getRankSprite

src/Savegame/Soldier.cpp:277–280  ·  view source on GitHub ↗

* Returns a graphic representation of * the soldier's military rank. * @note THE MEANING OF LIFE * @return Sprite ID for rank. */

Source from the content-addressed store, hash-verified

275 * @return Sprite ID for rank.
276 */
277int Soldier::getRankSprite() const
278{
279 return 42 + _rank;
280}
281
282
283/**

Callers 3

initMethod · 0.80
updateSoldierInfoMethod · 0.80
initMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected