RefBlueprint
Defined in: blueprint/ref-blueprint.ts:11
Base class for element and kind blueprints. Provides the to method for defining rules.
Extends
Section titled “Extends”BaseBlueprint
Extended by
Section titled “Extended by”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new RefBlueprint(
automaton,ref):RefBlueprint
Defined in: blueprint/ref-blueprint.ts:16
Parameters
Section titled “Parameters”automaton
Section titled “automaton”Automaton
Kind | Element
Returns
Section titled “Returns”RefBlueprint
Overrides
Section titled “Overrides”BaseBlueprint.constructor
Properties
Section titled “Properties”id:
string
Defined in: blueprint/ref-blueprint.ts:12
name:
string
Defined in: blueprint/ref-blueprint.ts:13
type:
RefType
Defined in: blueprint/ref-blueprint.ts:14
Methods
Section titled “Methods”to(
elementBlueprintOrNeighbor):RuleBlueprint
Defined in: blueprint/ref-blueprint.ts:33
Creates a new rule that transitions cells of this element (or kind) to another element or neighbor reference.
Parameters
Section titled “Parameters”elementBlueprintOrNeighbor
Section titled “elementBlueprintOrNeighbor”The target element, or a neighbor position reference (e.g. vi.neighbor.TOP).
AnyNeighbor | ElementBlueprint
Returns
Section titled “Returns”A RuleBlueprint for chaining conditions.