@kayahr/wastelib
    Preparing search index...

    Class MapTile

    Information about a single tile on a map.

    Index

    Constructors

    • Creates a new map tile.

      Parameters

      • actionClass: ActionClass

        The action class of this tile.

      • action: number

        The action to execute when player enters the tile.

      • image: number

        The index of the image of the active tileset to display.

      Returns MapTile

    Methods

    • Returns the action to execute when player enters the tile.

      Returns number

      The action

    • Returns the index of the image of the active tileset to display for this tile. Actually the index 0-9 references a sprite from the IC0_9.WLF while indices >= 10 reference the tiles in the tileset (minus 10).

      Returns number

      The index of the image to display.