Options
All
  • Public
  • Public/Protected
  • All
Menu

Module view/actions/GotoButton

Type aliases

Functions

Type aliases

OwnProps

OwnProps: object

React props for GotoButton component

Type declaration

  • item: string | undefined

    Item equipped in MOVING slot

  • player: PlayerInfo | undefined

    Currently logged player

  • tile: TileInfo | undefined

    Currently selected tile

Props

Functions

Const GotoButton

  • GotoButton(__namedParameters: object): Element
  • React Component representing action button for going to another tile. It handles whether this action should be enabled and commits this action to the blockchain.

    Parameters

    • __namedParameters: object
      • block: undefined | BlockInfo
      • buttonProps: buttonProps
      • flowControl: object
        • setError: function
            • (msg: string): void
            • Parameters

              • msg: string

              Returns void

        • setStart: function
            • (): void
            • Returns void

        • setSuccess: function
            • (msg: string): void
            • Parameters

              • msg: string

              Returns void

      • item: undefined | string
      • player: undefined | PlayerInfo
      • tile: undefined | TileInfo

    Returns Element

Const notCurrentTile

  • notCurrentTile(player: PlayerInfo | undefined, tile: TileInfo | undefined): undefined | false | true
  • Helper function for finding whether the selected tile is NOT the same as the one where the player is standing.

    Parameters

    Returns undefined | false | true

Generated using TypeDoc