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

Method setProjectile

src/Battlescape/Map.cpp:1434–1441  ·  view source on GitHub ↗

* Puts a projectile sprite on the map. * @param projectile Projectile to place. */

Source from the content-addressed store, hash-verified

1432 * @param projectile Projectile to place.
1433 */
1434void Map::setProjectile(Projectile *projectile)
1435{
1436 _projectile = projectile;
1437 if (projectile && Options::battleSmoothCamera)
1438 {
1439 _launch = true;
1440 }
1441}
1442
1443/**
1444 * Gets the current projectile sprite on the map.

Callers 2

createNewProjectileMethod · 0.80
thinkMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected