Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DEVDebugOps

Hierarchy

Index

Constructors

constructor

Methods

action_addResources

  • action_addResources(): void
  • Returns void

action_cheat

  • action_cheat(): void
  • Returns void

action_crash

  • action_crash(): void
  • Returns void

action_damageBuildings

  • action_damageBuildings(): void
  • Returns void

action_fillStorages

  • action_fillStorages(): void
  • Returns void

action_finishBlueprints

  • action_finishBlueprints(): void
  • Returns void

action_gameOver

  • action_gameOver(): void
  • Returns void

action_healBuildings

  • action_healBuildings(): void
  • Returns void

action_killZombies

  • action_killZombies(): void
  • Returns void

action_removeGravestones

  • action_removeGravestones(): void
  • Returns void

action_save

  • action_save(): void
  • Returns void

action_skipDayNight

  • action_skipDayNight(): void
  • Returns void

action_spawnZombie

  • action_spawnZombie(): void
  • Returns void

action_testAchievement

  • action_testAchievement(): void
  • Returns void

action_zoom

  • action_zoom(): void
  • Returns void

cleanup

  • cleanup(): void
  • Cleans up the hud element, if overridden make sure to call super.cleanups

    Returns void

cleanupListeners

  • cleanupListeners(): void
  • Returns void

close

  • close(): void
  • Should close the element, in case its supported

    Returns void

closeOnBackgroundClick

  • closeOnBackgroundClick(element: any, closeMethod?: any): void
  • Closes this element when its background is clicked

    Parameters

    • element: any
    • Default value closeMethod: any = null

    Returns void

closeOnOverlayOpen

  • closeOnOverlayOpen(closeMethod?: any): void
  • Calls closeMethod if an overlay is opened

    Parameters

    • Default value closeMethod: any = null

    Returns void

createElements

  • createElements(parent: any): void
  • Should create all require elements

    Parameters

    • parent: any

    Returns void

draw

  • draw(parameters: any): void
  • Should draw the hud

    Parameters

    • parameters: any

    Returns void

drawOverlays

  • drawOverlays(parameters: any): void
  • Should draw any overlays (screen space)

    Parameters

    • parameters: any

    Returns void

forwardGameSpeedKeybindings

  • forwardGameSpeedKeybindings(sourceMapper: any): void
  • Forwards the game speed keybindings so you can toggle pause / Fastforward in the building tooltip and such

    Parameters

    • sourceMapper: any

    Returns void

forwardMapMovementKeybindings

  • forwardMapMovementKeybindings(sourceMapper: any): void
  • Forwards the map movement keybindings so you can move the map with the arrow keys

    Parameters

    • sourceMapper: any

    Returns void

forwardSidebarKeybindings

  • forwardSidebarKeybindings(sourceMapper: any): void
  • Forwards the game speed keybindings so you can toggle pause / Fastforward in the building tooltip and such

    Parameters

    • sourceMapper: any

    Returns void

initialize

  • initialize(): void

isBlockingOverlay

  • isBlockingOverlay(): boolean
  • Should return true if this overlay is open and currently blocking any user interaction

    Returns boolean

onKeyDown

  • onKeyDown(__namedParameters: object): void
  • Parameters

    • __namedParameters: object
      • keyCode: any

    Returns void

registerClickDetector

  • registerClickDetector(detector: any): void
  • Registers a new click detector

    Parameters

    • detector: any

    Returns void

shouldPauseGame

  • shouldPauseGame(): boolean
  • Should return false if the game should be paused

    Returns boolean

shouldPauseRendering

  • shouldPauseRendering(): boolean
  • Should return true if the widget has a modal dialog opened and thus the game does not need to update / redraw

    Returns boolean

trackClicks

  • trackClicks(element: any, handler: any, args?: object): void
  • Helper method to construct a new click detector

    Parameters

    • element: any

      The element to listen on

    • handler: any

      The handler to call on this object

    • Default value args: object = {}

      Click detector arguments

    Returns void

trackMouse

  • trackMouse(event: any): void
  • Parameters

    • event: any

    Returns void

update

  • update(): void
  • Should update any required logic

    Returns void