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