Ejemplo n.º 1
0
	VC3 UnitList::getTrackableUnifiedHandleVelocity(UnifiedHandle unifiedHandle) const
	{
		UnitList *thism = const_cast<UnitList *>(this);

		Unit *u = thism->getUnitById(unifiedHandleToUnitId(unifiedHandle));
		assert(u != NULL);

		return u->getVelocity();
	}
Ejemplo n.º 2
0
	bool UnitList::doesTrackableUnifiedHandleObjectExist(UnifiedHandle unifiedHandle) const
	{
		UnitList *thism = const_cast<UnitList *>(this);

		if (thism->getUnitById(unifiedHandleToUnitId(unifiedHandle)) != NULL)
			return true;
		else
			return false;
	}
Ejemplo n.º 3
0
	QUAT UnitList::getTrackableUnifiedHandleRotation(UnifiedHandle unifiedHandle) const
	{
		UnitList *thism = const_cast<UnitList *>(this);

		Unit *u = thism->getUnitById(unifiedHandleToUnitId(unifiedHandle));
		assert(u != NULL);

		VC3 rot = u->getRotation();

		QUAT ret = QUAT(UNIT_ANGLE_TO_RAD(rot.x), UNIT_ANGLE_TO_RAD(rot.y), UNIT_ANGLE_TO_RAD(rot.z));

		return ret;
	}