int32_t MoverGroup::orderEject(int32_t origin) { int32_t result = TACORDER_FAILURE; for (size_t i = 0; i < numMovers; i++) { Assert(getMover(i) != nullptr, 0, " MoverGroup.orderEject: nullptr mover "); MechWarriorPtr pilot = getMover(i)->getPilot(); if (pilot) result = pilot->orderEject(true, true, origin); } return (result); }
long MoverGroup::orderEject (long origin) { long result = TACORDER_FAILURE; for (long i = 0; i < numMovers; i++) { Assert(getMover(i) != NULL, 0, " MoverGroup.orderEject: NULL mover "); MechWarriorPtr pilot = getMover(i)->getPilot(); if (pilot) result = pilot->orderEject(true, true, origin); } return(result); }