Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DirectiveBootstrap

Bootstrapping directive: recover from a colony-wide crash or bootstrap from initial spawn-in

Hierarchy

Index

Constructors

constructor

Properties

colony

colony: Colony

memory

memory: FlagMemory

name

name: string

Private needsManager

needsManager: boolean

Private needsMiner

needsMiner: boolean

Private needsQueen

needsQueen: boolean

overlords

overlords: object

Type declaration

pos

pos: RoomPosition

ref

ref: string

requiredRCL

requiredRCL: number

room

room: Room

Static color

color: 7 = COLOR_ORANGE

Static directiveName

directiveName: string = "bootstrap"

Static secondaryColor

secondaryColor: 7 = COLOR_ORANGE

Accessors

flag

  • get flag(): Flag

print

  • get print(): string

Methods

alert

init

  • init(): void

refresh

  • refresh(): void

remove

  • remove(force?: boolean): number | undefined

run

  • run(): void

setColor

  • setColor(color: ColorConstant, secondaryColor?: ColorConstant): number

setPosition

  • setPosition(pos: RoomPosition): number

spawnMoarOverlords

  • spawnMoarOverlords(): void

visuals

  • visuals(): void

Static create

  • create(pos: RoomPosition, opts?: DirectiveCreationOptions): number | string

Static createIfNotPresent

  • createIfNotPresent(pos: RoomPosition, scope: "room" | "pos", opts?: DirectiveCreationOptions): number | string | undefined

Static filter

  • filter(flag: Flag): boolean

Static find

Static isPresent

  • isPresent(pos: RoomPosition, scope: "room" | "pos"): boolean

Generated using TypeDoc