Note

ASUNA!!!

Type Parameters

Hierarchy

Constructors

Properties

Accessors

Methods

addListener addTechResearched blzCreateUnitWithSkin blzDecTechResearched blzDisplayChatMessage blzGetTownHallCount blzQueueNeutralImmediateOrderById blzQueueNeutralPointOrderById blzQueueNeutralTargetOrderById cacheHeroData color commandAI controller createBlightedGoldmine createBuilding createBuildingEx createCorpse createFogModifierRadius createFogModifierRadiusLoc createFogModifierRect createIllusion createIllusionAtLoc createUnit createUnitAtLoc createUnitAtLocByName createUnitByName cripple dialogDisplay displayChatMessage displayTextTo displayTimedChatMessage displayTimedTextFrom displayTimedTextTo displayTimedTopMessage displayTimedWarningMessage displayTopMessage displayWarningMessage emit equals eventNames forceStartLocation getAIDifficulty getAlliance getFirstUnitInSelection getId getLastUnitInSelection getLeaderboard getMaxListeners getRace getScore getSlotState getState getStructureCount getTaxRate getTechCount getTechMaxAllowed getTechResearched getTournamentScore getTypedUnitCount getUnitCount getUnitInSelectionByIndex getUnitSelected getUnitSelectedCountBy handicap handicapDamage handicapReviveTime handicapXP isAlly isEnemy isInForce isObserver isRacePrefSet issueNeutralImmediateOrder issueNeutralImmediateOrderById issueNeutralPointOrder issueNeutralPointOrderById issueNeutralTargetOrder issueNeutralTargetOrderById listenerCount listeners name off on once pauseCompAI prependListener prependOnceListener queueNeutralImmediateOrderById queueNeutralPointOrderById queueNeutralTargetOrderById rawListeners remove removeAllGuardPositions removeAllListeners removeListener selectable setAbilityAvailable setAlliance setBlight setBlightLoc setBlightPoint setBlightRect setFogStateRadius setFogStateRadiusLoc setFogStateRect setLeaderboard setMaxListeners setState setTaxRate setTechMaxAllowed setTechResearched startCampaignAI startLocation startMeleeAI team getById listenerCount localPlayer

Constructors

Properties

#private: any
defaultMaxListeners: number

Accessors

Methods

  • Type Parameters

    • E extends string | number | symbol

    Parameters

    • event: E
    • listener: T[E]

    Returns Player<T>

  • Class member alias for AddPlayerTechResearched

    Parameters

    • techid: number
    • levels: number

    Returns void

  • Class member alias for BlzDecPlayerTechResearched

    Parameters

    • techid: number
    • levels: number

    Returns void

  • Class member alias for BlzDisplayChatMessage

    Parameters

    • recipient: number
    • message: string

    Returns void

  • Class member alias for BlzQueueNeutralPointOrderById

    Parameters

    Returns boolean

  • Class member alias for CachePlayerHeroData

    Returns void

  • Class member alias for CommandAI

    Parameters

    • command: number
    • data: number

    Returns void

  • Class member alias for CreateBuildingEx

    Parameters

    • unitTypeId: number
    • x: number
    • y: number
    • facing: number
    • isAutoBuild: boolean
    • workersCanAssist: boolean

    Returns Unit<UnitEventMap>

  • Class member alias for CreateFogModifierRadius

    Parameters

    • whichState: HandleHolder<"fogstate">
    • centerx: number
    • centerY: number
    • radius: number
    • useSharedVision: boolean
    • afterUnits: boolean

    Returns HandleHolder<"fogmodifier">

  • Class member alias for CripplePlayer

    Parameters

    Returns void

  • Class member alias for DialogDisplay

    Parameters

    Returns void

  • Class member alias for DisplayChatMessage

    Parameters

    • recipient: number
    • message: string

    Returns void

  • Class member alias for DisplayTextToPlayer

    Parameters

    • x: number
    • y: number
    • message: string

    Returns void

  • Class member alias for DisplayTimedChatMessage

    Parameters

    • recipient: number
    • duration: number
    • message: string

    Returns void

  • Class member alias for DisplayTimedTextFromPlayer

    Parameters

    • x: number
    • y: number
    • duration: number
    • message: string

    Returns void

  • Class member alias for DisplayTimedTextToPlayer

    Parameters

    • x: number
    • y: number
    • duration: number
    • message: string

    Returns void

  • Class member alias for DisplayTimedTopMessage

    Parameters

    • duration: number
    • message: string

    Returns void

  • Class member alias for DisplayTimedWarningMessage

    Parameters

    • duration: number
    • message: string

    Returns void

  • Class member alias for DisplayTopMessage

    Parameters

    • message: string

    Returns void

  • Class member alias for DisplayWarningMessage

    Parameters

    • message: string

    Returns void

  • Type Parameters

    • E extends string | number | symbol

    Parameters

    • event: E
    • Rest ...args: Parameters<(T & AnyEmmiter)[E]>

    Returns boolean

  • Returns (string | symbol)[]

  • Class member alias for ForcePlayerStartLocation

    Parameters

    • startLocIndex: number

    Returns void

  • Class member alias for GetPlayerId

    Returns number

  • Class member alias for GetPlayerScore

    Parameters

    Returns number

  • Class member alias for GetPlayerState

    Parameters

    Returns number

  • Class member alias for GetPlayerStructureCount

    Parameters

    • includeIncomplete: boolean

    Returns number

  • Class member alias for GetPlayerTechCount

    Parameters

    • techid: number
    • specificonly: boolean

    Returns number

  • Class member alias for GetPlayerTechMaxAllowed

    Parameters

    • techid: number

    Returns number

  • Class member alias for GetPlayerTechResearched

    Parameters

    • techid: number
    • specificonly: boolean

    Returns boolean

  • Class member alias for GetTournamentScore

    Returns number

  • Class member alias for GetPlayerTypedUnitCount

    Parameters

    • unitName: string
    • includeIncomplete: boolean
    • includeUpgrades: boolean

    Returns number

  • Class member alias for GetPlayerUnitCount

    Parameters

    • includeIncomplete: boolean

    Returns number

  • Class chain property alias for GetPlayerHandicap and SetPlayerHandicap

    Returns number

  • Type Parameters

    • T = number

    Parameters

    • value: T | ((this, currentValue) => T)

    Returns Player<T>

  • Class chain property alias for GetPlayerHandicapDamage and SetPlayerHandicapDamage

    Returns number

  • Type Parameters

    • T = number

    Parameters

    • value: T | ((this, currentValue) => T)

    Returns Player<T>

  • Class chain property alias for GetPlayerHandicapXP and SetPlayerHandicapXP

    Returns number

  • Type Parameters

    • T = number

    Parameters

    • value: T | ((this, currentValue) => T)

    Returns Player<T>

  • Class member alias for IsPlayerInForce

    Parameters

    Returns boolean

  • Class member alias for IsPlayerObserver

    Returns boolean

  • Class member alias for IsPlayerRacePrefSet

    Parameters

    Returns boolean

  • Class member alias for IssueNeutralImmediateOrder

    Parameters

    Returns boolean

  • Class member alias for IssueNeutralPointOrder

    Parameters

    Returns boolean

  • Class member alias for IssueNeutralPointOrderById

    Parameters

    Returns boolean

  • Type Parameters

    • E extends string | number | symbol

    Parameters

    • event: E

    Returns number

  • Type Parameters

    • E extends string | number | symbol

    Parameters

    • event: E

    Returns T[E][]

  • Class chain property alias for GetPlayerName and SetPlayerName

    Returns string

  • Type Parameters

    • T = string

    Parameters

    • value: T | ((this, currentValue) => T)

    Returns Player<T>

  • Type Parameters

    • E extends string | number | symbol

    Parameters

    • event: E
    • listener: T[E]

    Returns Player<T>

  • Type Parameters

    • E extends string | number | symbol

    Parameters

    • event: E
    • listener: T[E]

    Returns Player<T>

  • Type Parameters

    • E extends string | number | symbol

    Parameters

    • event: E
    • listener: T[E]

    Returns Player<T>

  • Class member alias for PauseCompAI

    Parameters

    • pause: boolean

    Returns void

  • Type Parameters

    • E extends string | number | symbol

    Parameters

    • event: E
    • listener: T[E]

    Returns Player<T>

  • Type Parameters

    • E extends string | number | symbol

    Parameters

    • event: E
    • listener: T[E]

    Returns Player<T>

  • Class member alias for QueueNeutralPointOrderById

    Parameters

    Returns boolean

  • Type Parameters

    • E extends string | number | symbol

    Parameters

    • event: E

    Returns T[E][]

  • Class member alias for RemovePlayer

    Parameters

    Returns void

  • Class member alias for RemoveAllGuardPositions

    Returns void

  • Type Parameters

    • E extends string | number | symbol

    Parameters

    • Optional event: E

    Returns Player<T>

  • Type Parameters

    • E extends string | number | symbol

    Parameters

    • event: E
    • listener: T[E]

    Returns Player<T>

  • Class chain property alias for GetPlayerSelectable and SetPlayerRaceSelectable

    Returns boolean

  • Type Parameters

    • T = boolean

    Parameters

    • value: T | ((this, currentValue) => T)

    Returns Player<T>

  • Class member alias for SetPlayerAbilityAvailable

    Parameters

    • abilid: number
    • avail: boolean

    Returns void

  • Class member alias for SetPlayerAlliance

    Parameters

    Returns void

  • Class member alias for SetBlight

    Parameters

    • x: number
    • y: number
    • radius: number
    • addBlight: boolean

    Returns void

  • Class member alias for SetBlightLoc

    Parameters

    • whichLocation: Location
    • radius: number
    • addBlight: boolean

    Returns void

  • Class member alias for SetBlightPoint

    Parameters

    • x: number
    • y: number
    • addBlight: boolean

    Returns void

  • Class member alias for SetBlightRect

    Parameters

    Returns void

  • Class member alias for SetFogStateRadius

    Parameters

    • whichState: HandleHolder<"fogstate">
    • centerx: number
    • centerY: number
    • radius: number
    • useSharedVision: boolean

    Returns void

  • Class member alias for SetFogStateRadiusLoc

    Parameters

    Returns void

  • Class member alias for SetFogStateRect

    Parameters

    Returns void

  • Class member alias for SetPlayerState

    Parameters

    Returns void

  • Class member alias for SetPlayerTechMaxAllowed

    Parameters

    • techid: number
    • maximum: number

    Returns void

  • Class member alias for SetPlayerTechResearched

    Parameters

    • techid: number
    • setToLevel: number

    Returns void

  • Class member alias for StartCampaignAI

    Parameters

    • script: string

    Returns void

  • Class chain property alias for GetPlayerStartLocation and SetPlayerStartLocation

    Returns number

  • Type Parameters

    • T = number

    Parameters

    • value: T | ((this, currentValue) => T)

    Returns Player<T>

  • Class member alias for StartMeleeAI

    Parameters

    • script: string

    Returns void

  • Class chain property alias for GetPlayerTeam and SetPlayerTeam

    Returns number

  • Type Parameters

    • T = number

    Parameters

    • value: T | ((this, currentValue) => T)

    Returns Player<T>

  • Parameters

    • emitter: EventEmitter<AnyEmmiter>
    • type: string | number

    Returns number

Generated using TypeDoc