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

Method getItem

src/Battlescape/Projectile.cpp:379–385  ·  view source on GitHub ↗

* Gets the project tile item. * Returns 0 when there is no item thrown. * @return Pointer to BattleItem. */

Source from the content-addressed store, hash-verified

377 * @return Pointer to BattleItem.
378 */
379BattleItem *Projectile::getItem() const
380{
381 if (_action.type == BA_THROW)
382 return _action.weapon;
383 else
384 return 0;
385}
386
387/**
388 * Gets the bullet sprite.

Callers 15

deployXCOMMethod · 0.45
addXCOMVehicleMethod · 0.45
deployAliensMethod · 0.45
placeItemByLayoutMethod · 0.45
addItemMethod · 0.45
fuelPowerSourcesMethod · 0.45
psiActionMethod · 0.45
drawTerrainMethod · 0.45
cacheUnitMethod · 0.45
thinkMethod · 0.45
initMethod · 0.45
explodeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected