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”Type Parameters
Section titled “Type Parameters”N extends Neighborhood = Neighborhood
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new RefBlueprint<
N>(automaton,ref):RefBlueprint<N>
Defined in: blueprint/ref-blueprint.ts:16
Parameters
Section titled “Parameters”automaton
Section titled “automaton”Returns
Section titled “Returns”RefBlueprint<N>
Overrides
Section titled “Overrides”BaseBlueprint.constructor
Properties
Section titled “Properties”id:
number
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<N>
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”ElementBlueprint<Neighborhood> | Neighbor<N>
The target element, or a neighbor position reference (e.g. vi.neighbor.TOP).
Returns
Section titled “Returns”A RuleBlueprint for chaining conditions.
