/// You have to set myAllyTeamId before calling this function. NOT thread safe! static inline bool unit_IsEnemyAndInLos(const CUnit* unit) { return (unit_IsEnemy(unit) && unit_IsInLos(unit)); }
/// You have to set myAllyTeamId before calling this function. NOT thread safe! static inline bool unit_IsEnemyAndInLosOrRadar(const CUnit* unit) { return (unit_IsEnemy(unit) && (unit_IsInLos(unit) || unit_IsInRadar(unit))); }
/// You have to set myAllyTeamId before calling this function. NOT thread safe! static inline bool unit_IsEnemyAndInLosOrRadar(const CUnit* unit) { return (unit_IsEnemy(unit) && ((unit->losStatus[myAllyTeamId] & (LOS_INLOS | LOS_INRADAR)) != 0)); }