Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Turn

This class represents a turn in a single Hallway. When a user passes a Turn, the directions will output: "turn left/right".

Hierarchy

  • Turn

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Turn(direction: -1 | 1): Turn
  • Parameters

    • direction: -1 | 1

    Returns Turn

Properties

direction

direction: -1 | 1

Methods

onPass

  • Parameters

    Returns string

Generated using TypeDoc