Jass:CountUnitsInGroup – Mappedia

Jass:CountUnitsInGroup

Aus Mappedia
Wechseln zu: Navigation, Suche
Funktion: CountUnitsInGroup
Parameter: group
Rückgabewert: integer
Autor: Blizzard
Quelle: Blizzard.j
Synchron: Unbekannt



Code

function CountUnitsInGroup takes group g returns integer
    // If the user wants the group destroyed, remember that fact and clear
    // the flag, in case it is used again in the callback.
    local boolean wantDestroy = bj_wantDestroyGroup
    set bj_wantDestroyGroup = false

    set bj_groupCountUnits = 0
    call ForGroup(g, function CountUnitsInGroupEnum)

    // If the user wants the group destroyed, do so now.
    if (wantDestroy) then
        call DestroyGroup(g)
    endif
    return bj_groupCountUnits
endfunction

Parameter

Typ Name Beschreibung
group g
Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
Warcraft-Mapping
Werkzeuge