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

Method getSelectedUnit

src/Savegame/SavedBattleGame.cpp:580–583  ·  view source on GitHub ↗

* Gets the currently selected unit * @return Pointer to BattleUnit. */

Source from the content-addressed store, hash-verified

578 * @return Pointer to BattleUnit.
579 */
580BattleUnit *SavedBattleGame::getSelectedUnit() const
581{
582 return _selectedUnit;
583}
584
585/**
586 * Sets the currently selected unit.

Callers 15

deployXCOMMethod · 0.80
drawMethod · 0.80
drawTerrainMethod · 0.80
InventoryStateMethod · 0.80
~InventoryStateMethod · 0.80
initMethod · 0.80
updateStatsMethod · 0.80
btnOkClickMethod · 0.80
btnRankClickMethod · 0.80
initMethod · 0.80
thinkMethod · 0.80
handleAIMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected