Пример #1
0
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;
}
Пример #2
0
void HostilRefManager::addThreatPercent(int32 iPercent)
{
    HostilReference* ref;

    ref = getFirst();
    while (ref != NULL)
    {
        ref->addThreatPercent(iPercent);
        ref = ref->next();
    }
}
Пример #3
0
void HostilRefManager::addThreatPercent(int32 pValue)
{
    for (HostilReference* ref = getFirst(); ref != NULL; ref = ref->next())
        ref->addThreatPercent(pValue);
}