Jass:MeleeStartingUnitsForPlayer
Aus Mappedia
| Funktion: MeleeStartingUnitsForPlayer | |
|---|---|
| Parameter: | race player location boolean |
| Rückgabewert: | nothing |
| Autor: | Blizzard |
| Quelle: | Blizzard.j |
| Synchron: | Unbekannt |
Code
function MeleeStartingUnitsForPlayer takes race whichRace, player whichPlayer, location loc, boolean doHeroes returns nothing // Create initial race-specific starting units if (whichRace == RACE_HUMAN) then call MeleeStartingUnitsHuman(whichPlayer, loc, doHeroes, false, false) elseif (whichRace == RACE_ORC) then call MeleeStartingUnitsOrc(whichPlayer, loc, doHeroes, false, false) elseif (whichRace == RACE_UNDEAD) then call MeleeStartingUnitsUndead(whichPlayer, loc, doHeroes, false, false) elseif (whichRace == RACE_NIGHTELF) then call MeleeStartingUnitsNightElf(whichPlayer, loc, doHeroes, false, false) else // Unrecognized race - ignore the request. endif endfunction
Parameter
| Typ | Name | Beschreibung |
|---|---|---|
| race | whichRace | |
| player | whichPlayer | |
| location | loc | |
| boolean | doHeroes |
