Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BaseMap

Hierarchy

Index

Constructors

constructor

  • Parameters

    • root: any

    Returns BaseMap

Methods

clearTile

  • clearTile(tile: any): void
  • Resets the tiles content

    Parameters

    • tile: any

    Returns void

getBuildingsWithComponentInRange

  • getBuildingsWithComponentInRange(startTile: any, componentClass: any): any
  • Returns all buildings within the transport range which have the given component

    Parameters

    • startTile: any
    • componentClass: any

    Returns any

getTileContent

  • getTileContent(tile: any): any
  • Returns the tile content of a given tile

    Parameters

    • tile: any

    Returns any

    Entity or null

internalCheckTile

  • internalCheckTile(tile: any): void
  • Checks a given tile for validty

    Parameters

    • tile: any

    Returns void

isTileUsed

  • isTileUsed(tile: any): boolean
  • Checks if the tile is used

    Parameters

    • tile: any

    Returns boolean

isValidTile

  • isValidTile(tile: any): boolean
  • Checks if a given tile is within the map bounds

    Parameters

    • tile: any

    Returns boolean

isWithinBorders

  • isWithinBorders(tile: any): boolean
  • Checks if a given tile is within the map bounds, including borders

    Parameters

    • tile: any

    Returns boolean

removeEntityFromMap

  • removeEntityFromMap(entity: any): void
  • Removes the entity from the map

    Parameters

    • entity: any

    Returns void

setTileContent

  • setTileContent(tile: any, entity: any): void
  • Sets the tiles content

    Parameters

    • tile: any
    • entity: any

    Returns void