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

	long result = TACORDER_FAILURE;

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

	return(result);
}