HostilReference* ThreatContainer::modifyThreatPercent(Unit *pVictim, int32 pPercent) { HostilReference* ref = getReferenceByTarget(pVictim); assert(ref); // for a modification the reference must be there. (or not?) ref->addThreatPercent(pPercent); return ref; }
void HostilRefManager::addThreatPercent(int32 iPercent) { HostilReference* ref; ref = getFirst(); while (ref != NULL) { ref->addThreatPercent(iPercent); ref = ref->next(); } }
void HostilRefManager::addThreatPercent(int32 pValue) { for (HostilReference* ref = getFirst(); ref != NULL; ref = ref->next()) ref->addThreatPercent(pValue); }