Esempio 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();
	}
Esempio 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;
	}
Esempio 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;
	}