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

	long result = TACORDER_FAILURE;

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

	return(result);
}