Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GameCache

GameCache does initial low-level preprocessing before each tick is run

Hierarchy

  • GameCache

Implements

  • ICache

Index

Constructors

constructor

Properties

creepsByColony

creepsByColony: object

Type declaration

  • [colonyName: string]: Creep[]

outpostFlags

outpostFlags: Flag[]

overlords

overlords: object

Type declaration

  • [overlord: string]: object
    • [roleName: string]: string[]

targets

targets: object

Type declaration

  • [ref: string]: string[]

Methods

build

  • build(): void

Private cacheCreepsByColony

  • cacheCreepsByColony(): void

Private cacheOverlords

  • cacheOverlords(): void
  • Generates a hash table for creeps assigned to each object: key: OLref, val: (key: role, val: names[])

    Returns void

Private cacheTargets

  • cacheTargets(): void
  • Generates a hash table for targets: key: TargetRef, val: targeting creep names

    Returns void

refresh

  • refresh(): void

Generated using TypeDoc