ArraySpan
Extends:
Span → ArraySpan
Class for storing items of mixed type and fetching a randomised value from these items.
Constructor Summary
Public Constructor | ||
public |
constructor(items: mixed | array<mixed>): * Constructs an ArraySpan instance. |
Member Summary
Public Members | ||
public |
items: array An array of colors |
|
public |
The class type. |
Method Summary
Public Methods | ||
public |
getValue(): mixed Gets a random item. |
Inherited Summary
From class Span | ||
public |
a: * |
|
public |
b: * |
|
public |
The class type. |
|
private |
_center: * |
|
private |
|
|
public |
Span.getValue function |
Public Constructors
public constructor(items: mixed | array<mixed>): * source
Constructs an ArraySpan instance.
Override:
Span#constructorParams:
Name | Type | Attribute | Description |
items | mixed | array<mixed> | Items |
Return:
* | void |