Skip to content

RefBlueprint

Defined in: blueprint/ref-blueprint.ts:11

Base class for element and kind blueprints. Provides the to method for defining rules.

  • BaseBlueprint

N extends Neighborhood = Neighborhood

new RefBlueprint<N>(automaton, ref): RefBlueprint<N>

Defined in: blueprint/ref-blueprint.ts:16

Automaton

Kind | Element

RefBlueprint<N>

BaseBlueprint.constructor

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

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.

ElementBlueprint<Neighborhood> | Neighbor<N>

The target element, or a neighbor position reference (e.g. vi.neighbor.TOP).

RuleBlueprint<N>

A RuleBlueprint for chaining conditions.