Rectangular obstacle.

Hierarchy

Implements

Constructors

Properties

Accessors

Methods

Constructors

  • Constructs the pipe.

    Parameters

    • positionX: number

      starting x-Position

    • width: number

      pipe width

    • height: number

      pipe height

    • image: string

      path to image.

    Returns Pipe

Properties

_image: Image

Pipe's image.

Accessors

  • get height(): number
  • Get height.

    Returns number

  • set height(value: number): void
  • Set height.

    Parameters

    • value: number

    Returns void

  • get image(): Image
  • Gets the image.

    Returns Image

  • set image(path: any): void
  • Sets the image.

    Parameters

    • path: any

      Path to image

    Returns void

  • get showHitbox(): boolean
  • Get the hitbox's visibility.

    Returns boolean

  • set showHitbox(value: boolean): void
  • Set the hitbox's visibility.

    Parameters

    • value: boolean

    Returns void

  • get width(): number
  • Get width.

    Returns number

  • set width(value: number): void
  • Set width.

    Parameters

    • value: number

    Returns void

Methods

  • Moves the pipe to the lift with the given speed

    Parameters

    • speed: number

      how fast the pipe moves

    Returns void

Generated using TypeDoc