Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

  • new Screen(name: string, engine: Engine): Screen
  • Parameters

    • name: string
    • engine: Engine

    Returns Screen

Properties

Protected engine

engine: Engine

Protected name

name: string

Protected observers

observers: ObserverInterface[] = []

Methods

attach

  • attach(observer: ObserverInterface): void
  • Parameters

    • observer: ObserverInterface

    Returns void

detach

  • detach(observer: ObserverInterface): void
  • Parameters

    • observer: ObserverInterface

    Returns void

enter

  • enter(): void
  • Returns void

exit

  • exit(): void
  • Returns void

getObservers

  • getObservers(): ObserverInterface[]
  • Returns ObserverInterface[]

Abstract handleInput

  • handleInput(inputType?: undefined | string, inputData?: InputDataInterface): string | null

notify

  • notify(message?: undefined | string): void
  • Parameters

    • Optional message: undefined | string

    Returns void

Abstract render

  • render(display: DisplayInterface, entities?: Entity[], player?: Player): void
  • Parameters

    • display: DisplayInterface
    • Optional entities: Entity[]
    • Optional player: Player

    Returns void

Generated using TypeDoc