Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BaseMapLayout

Hierarchy

Index

Constructors

constructor

  • Parameters

    • id: any
    • config: any

    Returns BaseMapLayout

Methods

getAvailableDifficulties

  • getAvailableDifficulties(): string[]
  • Returns the difficulties which are available on this map

    Returns string[]

getDesc

  • getDesc(): any
  • Returns the map description

    Returns any

getId

  • getId(): any
  • Returns the maps id

    Returns any

getIsHidden

  • getIsHidden(): boolean
  • Returns if this layout is hidden

    Returns boolean

getNumTilesX

  • getNumTilesX(): number
  • Returns the map width

    Returns number

getNumTilesY

  • getNumTilesY(): number
  • Returns the map height

    Returns number

getPerkId

  • getPerkId(): any
  • Returns the perk which needs to be owned in order to play this map

    Returns any

getPowerupCount

  • getPowerupCount(): object
  • Returns how many of each powerup are on the map

    Returns object

    • arrow_1: boolean
    • arrow_2: boolean
    • arrow_3: boolean
    • cannon_1: boolean
    • cannon_2: boolean
    • cannon_3: boolean
    • crystal_1: boolean
    • crystal_2: boolean
    • crystal_3: boolean

getPowerupLikelinesses

  • getPowerupLikelinesses(): object
  • Returns the likeliness for each powerup to occur

    Returns object

getResourceCounts

  • getResourceCounts(): object
  • Returns how many of each resource are on the map

    Returns object

    • coalore: number
    • crystal: number
    • ironore: number
    • rock: number
    • tree: number
    • uraniumore: number

getSkinId

  • getSkinId(): any
  • Returns the skin to use

    Returns any

getTheme

  • getTheme(): any
  • Returns the color theme

    Returns any

getTitle

  • getTitle(): any
  • Returns the map name

    Returns any

initializeMap

  • initializeMap(root: any): void
  • Initializes the map

    Parameters

    • root: any

    Returns void