Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MetaFloorSpikes

Hierarchy

Index

Constructors

constructor

Methods

addBaseUpgradeRequirement

  • addBaseUpgradeRequirement(updateId: any): void
  • Adds the given upgrade of the playerbase as a requirement to build

    Parameters

    • updateId: any

    Returns void

addNearbyResourceRestriction

  • addNearbyResourceRestriction(resourceId: any): void
  • Adds a new resource restriction, which means this building needs to placed directly next to this resource

    Parameters

    • resourceId: any

    Returns void

addRequirement

  • addRequirement(requirement: any): void
  • Adds a new requirement

    Parameters

    • requirement: any

    Returns void

addResourceRequirement

  • addResourceRequirement(resourceId: any): void
  • Requires that the given resource is produced before placing the building

    Parameters

    • resourceId: any

    Returns void

getBlueprintResources

  • getBlueprintResources(root: any, faction: any): object
  • Returns the required blueprint resources, scaled by the difficulties multiplicator

    Parameters

    • root: any
    • faction: any

    Returns object

    resource id -> amount

getBlueprintResourcesInternal

  • getBlueprintResourcesInternal(): object

getBlueprintSprite

  • getBlueprintSprite(): any

getBlueprintSpriteId

  • getBlueprintSpriteId(): string
  • Returns string

    The id of the sprite to use for the blueprint rendering

getBuildDuration

  • getBuildDuration(root: any, faction: any): number
  • Returns the build duration

    Parameters

    • root: any

      Game root is required to get difficulty

    • faction: any

      The players faction

    Returns number

    Time to build in seconds

getBuildDurationInternal

  • getBuildDurationInternal(): number

getCanBePlacedInFog

  • getCanBePlacedInFog(): boolean
  • Returns boolean

    Whether the building can be placed even if the area is not explored

getDefaultRenderingSprite

  • getDefaultRenderingSprite(): any
  • Returns any

    The sprite to use when rendering this building when ith as no upgrades unlocked

getDefaultRenderingSpriteId

  • getDefaultRenderingSpriteId(): string

getDescription

  • getDescription(): any
  • Returns the description of this building

    Returns any

getDisplayName

  • getDisplayName(): any
  • Returns any

    The display name of this building

getEnhancements

  • getEnhancements(root: any): object

getExperienceGainForBuilding

  • getExperienceGainForBuilding(): number

getHighlightedResource

  • getHighlightedResource(): any

getId

  • getId(): any
  • Returns the unique buiding id

    Returns any

getInstanceClass

getIsAvailableInMode

  • getIsAvailableInMode(matchmode: any): boolean
  • Returns if the building is available in the given mode

    Parameters

    • matchmode: any

    Returns boolean

getIsSellable

  • getIsSellable(): boolean
  • Returns boolean

    Whether the building can be solt

getPlacementRadiusHelperSizeStyle

  • getPlacementRadiusHelperSizeStyle(): string

getPlacementRadiusHelperSizeTiles

  • getPlacementRadiusHelperSizeTiles(): any

getPlacementRestrictions

  • getPlacementRestrictions(): any

getPreviewSprite

  • getPreviewSprite(): any
  • Returns any

    The sprite to use in previews of this building

getPreviewSpriteId

  • getPreviewSpriteId(): string
  • Returns string

    The id of the sprite to use in previews of this buildings

getRequirements

  • getRequirements(): any
  • Returns unlock requirements

    Returns any

    The requirements for placing this building

getShortName

  • getShortName(): any
  • Returns the description of this building

    Returns any

getShowFogPlacementHelper

  • getShowFogPlacementHelper(): boolean
  • Returns whether to highlight all free tiles which are explored when placing. Default is to always show this except when a resource is highlighted.

    Returns boolean

    Whether to highlight free tiles when placing

getThemeColor

  • getThemeColor(): string

getUpgrades

  • getUpgrades(): any
  • Returns a list of upgrades, see getUpgradesUncached()

    Returns any

    Upgrades

getUpgradesUncached

  • getUpgradesUncached(): object
  • Returns a list of upgrades for the building, the format should be: { mainUpgrades?: Array, sideUpgrades?: Array } Because we don't want to instantiate that many upgrade classes, this method is cached and called by getUpgrades()

    Returns object

    Upgrades

getUseAdjacentPlacementMode

  • getUseAdjacentPlacementMode(): boolean