Throw
Class representing a single Throw
Static Method Summary
Static Public Methods | ||
public static |
Factory function. |
|
public static |
fromString(str: string): Throw Factory function. |
Constructor Summary
Public Constructor | ||
public |
constructor(num: number, multiplier: number) Initializes a new instance of the |
Member Summary
Public Members | ||
public get |
|
|
public get |
|
|
public get |
|
|
public get |
multiplier: Number: * |
|
public set |
multiplier(multiplier: Number): * Sets |
|
public get |
Returns one of the followings: 'S' (single) or 'D' (double) or 'T' (triple) |
|
public get |
|
|
public set |
Sets |
Static Public Methods
public static fromString(str: string): Throw source
Factory function.
Params:
Name | Type | Attribute | Description |
str | string | String representing the throw |
Example:
let throwInstance1 = Throw.fromString('T20'); // triple 20
let throwInstance2 = Throw.fromString('S15'); // single 15
let throwInstance3 = Throw.fromString('DB'); // double Bull