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

Method setBase

src/Savegame/Craft.cpp:323–328  ·  view source on GitHub ↗

* Changes the base the craft belongs to. * @param base Pointer to base. */

Source from the content-addressed store, hash-verified

321 * @param base Pointer to base.
322 */
323void Craft::setBase(Base *base)
324{
325 _base = base;
326 _lon = base->getLongitude();
327 _lat = base->getLatitude();
328}
329
330/**
331 * Changes the base the craft belongs to. (without setting the craft's coordinates)

Callers 3

advanceMethod · 0.45
btnOkClickMethod · 0.45
handleBaseDefenseMethod · 0.45

Calls 2

getLongitudeMethod · 0.45
getLatitudeMethod · 0.45

Tested by

no test coverage detected