traviso.js - v0.1.12
    Preparing search index...

    Class TileView

    Visual class for the map-tiles.

    TileView

    {EngineView} the engine instance that the map-tile sits in

    {string} type-id of the tile as defined in the JSON file

    Hierarchy

    • Container
      • TileView
    Index

    Constructors

    • Visual class constructor for the map-tiles.

      Parameters

      • engine: EngineView

        {EngineView} the engine instance that the map-tile sits in

      • type: string

        {string} type-id of the tile as defined in the JSON file

      Returns TileView

    Properties

    isMovableTo: boolean

    Defines if the map-tile is movable onto by map-objects.

    Position of the tile in terms of column and row index.

    type: string

    Type-id of the map-tile as defined in the JSON file.

    vertices: number[][]

    Defines the positions of the vertices of the tile.

    Methods

    • Function

      Clears all references.

      Returns void

    • Function

      Changes the highlight state of the map-tile.

      Parameters

      • isHighlighted: boolean

        {boolean} if the tile is being highlighted or not

      • instant: boolean = false

        {boolean} if the change will be instant or animated, default false

      Returns void