VC3 UnitList::getTrackableUnifiedHandleVelocity(UnifiedHandle unifiedHandle) const { UnitList *thism = const_cast<UnitList *>(this); Unit *u = thism->getUnitById(unifiedHandleToUnitId(unifiedHandle)); assert(u != NULL); return u->getVelocity(); }
bool UnitList::doesTrackableUnifiedHandleObjectExist(UnifiedHandle unifiedHandle) const { UnitList *thism = const_cast<UnitList *>(this); if (thism->getUnitById(unifiedHandleToUnitId(unifiedHandle)) != NULL) return true; else return false; }
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; }