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

Method setTurnFlag

src/Savegame/BattleItem.cpp:517–520  ·  view source on GitHub ↗

* Sets the "dropped on non-player turn" flag. This is set when the item is dropped in the battlescape * or picked up in the inventory screen. * @param flag True if the aliens dropped the item. */

Source from the content-addressed store, hash-verified

515 * @param flag True if the aliens dropped the item.
516 */
517void BattleItem::setTurnFlag(bool flag)
518{
519 _droppedOnAlienTurn = flag;
520}
521
522/**
523 * Converts an unconscious body into a dead one.

Callers 2

dropItemMethod · 0.80
moveItemMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected