Class: WeatherEffect#

Hierarchy#

  • Handle<weathereffect>

    ↳ WeatherEffect

Constructors#

constructor#

new WeatherEffect(where: Rectangle, effectID: number): WeatherEffect

Adds a weather effect.

note To understand more about weather effects nature, I advise to read Ammorth's article about weather effects: http://www.wc3c.net/showthread.php?t=91176.

note To get an idea on how to add your own weather effects, you may read CryoniC's article about custom weather effects: http://www.wc3c.net/showthread.php?t=67949.

Parameters:#

NameTypeDescription
whereRectangleThe rect to apply the WeatherEffect to.
effectIDnumberWhich effect to apply.

Returns: WeatherEffect

Defined in: handles/weathereffect.ts:6

Properties#

handle#

• Readonly handle: weathereffect

Inherited from: Handle.handle

Defined in: handles/handle.ts:6

Accessors#

id#

id(): number

Get the unique ID of the handle. The ID is recycled once you destroy the object.

Returns: number

The unique ID of a handle object.

Defined in: handles/handle.ts:18

Methods#

destroy#

destroy(): void

Returns: void

Defined in: handles/weathereffect.ts:24


enable#

enable(flag: boolean): void

Parameters:#

NameType
flagboolean

Returns: void

Defined in: handles/weathereffect.ts:28


fromHandle#

static fromHandle(handle: weathereffect): WeatherEffect

Parameters:#

NameType
handleweathereffect

Returns: WeatherEffect

Defined in: handles/weathereffect.ts:32