Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • new Module(ctx: CanvasRenderingContext2D, editor: Editor): Module

Properties

_constraint

_constraint: string

_goal

_goal: any

Optional _instrBoxes

_instrBoxes: Instruction[] = []

Optional _instrIndex

_instrIndex: number = 0

_instructions

_instructions: string

_latestInstrIndex

_latestInstrIndex: number = 0

_name

_name: string

Optional _starterCode

_starterCode: string

ctx

ctx: CanvasRenderingContext2D

editor

editor: Editor

Accessors

instructions

  • get instructions(): string

name

  • get name(): string

numInstructions

  • get numInstructions(): number

Methods

Abstract checkGoal

  • checkGoal(document: Document, effects: Effect<any>[]): boolean
  • Checks if the module goals are fulfilled

    Parameters

    • document: Document

      The HTML document

    • effects: Effect<any>[]

    Returns boolean

Optional drawGuides

  • drawGuides(): void

renderInstruction

  • renderInstruction(document: Document): void
  • render the current instruction of this checkpoint

    Parameters

    • document: Document

      The HTML document

    Returns void

renderLatestInstruction

  • renderLatestInstruction(document: Document): void

renderNextInstruction

  • renderNextInstruction(document: Document): void

renderPrevInstruction

  • renderPrevInstruction(document: Document): void

skipInstructions

  • skipInstructions(document: Document): boolean

Generated using TypeDoc